[darcs-users] push --and-apply

David Roundy droundy at abridgegame.org
Thu Sep 18 11:15:26 UTC 2003


Thanks for the bug report! (and the bug tracking down!)

On Thu, Sep 18, 2003 at 12:38:24AM +0300, Aggelos Economopoulos wrote:
> Ok, I've built and tested with the new patch and no more
> SIGVTALRMs. However, darcs pull still wouldn't work. I commented out the
> stderr redirection in
> Exec.lhs and saw that ssh2 died with:
> 
> scp2: warning: Invalid source specification ''.
> 
> So, now darcs pull works with the following change in compat.c
> 
> @@ -90,7 +90,7 @@
>    setitimer(ITIMER_REAL, &itv, NULL);
>    setitimer(ITIMER_VIRTUAL, &itv, NULL);
>    setitimer(ITIMER_PROF, &itv, NULL);
> -  execvp(file, argv);
> +  execvp(file, argv + 1);
>  }

It turns out the bug isn't in exec, but in the call to exec in
External.hs.  I was passing an empty string as an argument when there is no
SSH_PORT environment variable, which is what scp was barfing on.  I've
fixed this bug, and another I came across while testing it.

darcs push --and-apply abridgegame.org:mydirectory

now works for me.
-- 
David Roundy
http://www.abridgegame.org




More information about the darcs-users mailing list