Domanda

Attualmente sto sviluppando uno script Python tessuto che contiene alcune informazioni sensibili. Vorrei mettere questo in un repository per un certo pochi utenti per l'accesso.

Ho messo questo nel mio file hgrc:

[web]
allowpull = false
allow_read = user1, user2
allow_push = user1

Il mio problema è che io voglio solo user1 per essere in grado di clonare e tirare? Proprio per testare ho aggiunto il comando allowpull che sembra essere ignorato?

È stato utile?

Soluzione

Well, basically with read access, it is hard to deny clone and pull. If you want this granularity, try the ACL extension.

Altri suggerimenti

If you are restricting access to https, then you could try using RhodeCode. See https://bitbucket.org/marcinkuzminski/rhodecode/.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top