I'm using the Gerrit code review system, which accepts custom arguments to `git
receive pack` (i.e. to specify reviewers for a patch set). Is there a way
correctly to run git via magit with a custom receive-pack? If I define the
following function and then invoke it in, e.g. a magit status buffer it does
not work as expected:
(defun magit-push-with-receive-pack ()
(interactive)
(magit-run-git-async "push" "--receive-pack='git receive-pack'" "-v"
"origin" "master:master"))
>From the *magit-process* buffer:
128 git --no-pager push --receive-pack='git receive-pack' -v origin
master:master
Pushing to ssh://test.com:29418/test
Gerrit Code Review: git receive-pack: not found
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
This seems to imply that "git receive-pack" is being interpreted by the Gerrit
server as the name of the repository.
If I run the same command as printed in *magit-process* in a shell it works as
expected:
> git --no-pager push --receive-pack='git receive-pack' -v origin
master:master
Pushing to ssh://test.com:29418/test
Total 0 (delta 0), reused 0 (delta 0)
remote: Branch refs/heads/master:
...
Does the --receive-pack argument require special handling for
magit-run-git-async to process it correctly?
Thanks,
-Jason
--
You received this message because you are subscribed to the Google Groups
"magit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.