Re: Git rebase --exec cannot run git commands affecting other repos

2019-01-11 Thread Jeff King
On Thu, Jan 10, 2019 at 09:48:42PM +, Samir Benmendil wrote: > > If the user wants to work in a different repository, the > > environments that tells Git about the original repository can be > > unset to do so, which is a very much deliberately designed > > behaviour, primarily to help those w

Re: Git rebase --exec cannot run git commands affecting other repos

2019-01-10 Thread Samir Benmendil
On Jan 10, 2019 at 10:26, Junio C Hamano wrote: Samir Benmendil writes: It is impossible to run git commands affecting a different repo from within a `git rebase --exec` because in that environment the `GIT_DIR` and `GIT_WORK_TREE` variables are set and inherited by any commands run as part of

Re: Git rebase --exec cannot run git commands affecting other repos

2019-01-10 Thread Junio C Hamano
Samir Benmendil writes: > It is impossible to run git commands affecting a different repo from > within a `git rebase --exec` because in that environment the `GIT_DIR` > and `GIT_WORK_TREE` variables are set and inherited by any commands > run as part of `git rebase --exec`. If the user wants to

Git rebase --exec cannot run git commands affecting other repos

2019-01-10 Thread Samir Benmendil
It is impossible to run git commands affecting a different repo from within a `git rebase --exec` because in that environment the `GIT_DIR` and `GIT_WORK_TREE` variables are set and inherited by any commands run as part of `git rebase --exec`. A minimal reproduction is shown below: git ini