branch: externals/vc-got commit e4ac2ae5463d3a443169a082af423e82571b8f88 Author: Omar Polo <o...@omarpolo.com> Commit: Omar Polo <o...@omarpolo.com>
run `got fetch/send' inside the worktree I ended up running `got fetch' and `got send' from the repo directory when I was using `git push' to send stuff to the server. It was the only way. Now, there's `got send' that works correctly and does the right thing too when ran from a worktree, i.e. push the current branch, not necessarily the HEAD. --- vc-got.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vc-got.el b/vc-got.el index d3a624a..cf555fd 100755 --- a/vc-got.el +++ b/vc-got.el @@ -664,14 +664,12 @@ It's like `vc-process-filter' but supports \r inside S." ;; eventually a rebase. (defun vc-got-pull (prompt) "Execute a pull prompting for the full command if PROMPT is not nil." - (let ((default-directory (vc-got-root default-directory))) - (vc-got--push-pull vc-got-program "fetch" prompt))) + (vc-got--push-pull vc-got-program "fetch" prompt)) (defun vc-got-push (prompt) "Run git push (not got!) in the repository dir. If PROMPT is non-nil, prompt for the git command to run." - (let ((default-directory (vc-got--repo-root))) - (vc-got--push-pull vc-got-program "send" prompt))) + (vc-got--push-pull vc-got-program "send" prompt)) ;; History functions