dvcs-autosync+git is broken by design

Dieter Plaetinck dieter at plaetinck.be
Mon Mar 5 11:06:24 CET 2012


On Sun, 4 Mar 2012 22:39:22 +0000
Adam Spiers <vcs-home at adamspiers.org> wrote:

> Sure - I don't mind changes to existing files being autosynced,
> but I want to manually add new files to the repo myself.

Then you should change "startupcmd = git add -A" to "git add -u", although that's vulnerable to race conditions:
if you're updating files while 'git add -u' is running, it may abort.  The wrapper script I showed should probably be expanded with '-u' and '-A' like support.

Dieter


More information about the vcs-home mailing list