Re: git rebase -i --exec and changing directory

2018-05-27 Thread Junio C Hamano
Phillip Wood writes: > I tried your recipe and got the same result as you. However I think it > could be a problem with 'git status' rather than 'git rebase > --exec'. If I run your recipe in /tmp/a and do > > cd dir > GIT_DIR=/tmp/a/.git git status > > I get the same

Re: git rebase -i --exec and changing directory

2018-05-27 Thread Philip Oakley
Hi Ondrej, Phillip, From: "Phillip Wood" Hi Ondrej On 27/05/18 13:53, Ondrej Mosnáček wrote: Hi Philip, 2018-05-27 14:28 GMT+02:00 Philip Oakley : You may need to give a bit more background of things that seem obvious to you. So where is

Re: git rebase -i --exec and changing directory

2018-05-27 Thread Philip Oakley
Hi Ondrej, Phillip, From: "Phillip Wood" Hi Ondrej On 27/05/18 13:53, Ondrej Mosnáček wrote: Hi Philip, 2018-05-27 14:28 GMT+02:00 Philip Oakley : You may need to give a bit more background of things that seem obvious to you. So where is

Re: git rebase -i --exec and changing directory

2018-05-27 Thread Phillip Wood
Hi Ondrej On 27/05/18 13:53, Ondrej Mosnáček wrote: Hi Philip, 2018-05-27 14:28 GMT+02:00 Philip Oakley : You may need to give a bit more background of things that seem obvious to you. So where is the src directory you are cd'ing to relative to the directory/repository

Re: git rebase -i --exec and changing directory

2018-05-27 Thread Ondrej Mosnáček
Hi Philip, 2018-05-27 14:28 GMT+02:00 Philip Oakley : > You may need to give a bit more background of things that seem obvious to > you. > So where is the src directory you are cd'ing to relative to the > directory/repository you are creating? It is located in the top-level

Re: git rebase -i --exec and changing directory

2018-05-27 Thread Philip Oakley
You may need to give a bit more background of things that seem obvious to you. So where is the src directory you are cd'ing to relative to the directory/repository you are creating? What is [the name of] the directory you are currently in, etc. ? Philip -- From: "Ondrej Mosnáček"

Re: git rebase -i --exec and changing directory

2018-05-27 Thread Ondrej Mosnáček
Bump? Has anyone had time to look at this? Thanks, Ondrej Mosnacek 2018-05-19 18:38 GMT+02:00 Ondrej Mosnáček : > Hello, > > I am trying to run a script to edit multiple commits using 'git rebase > -i --exec ...' and I ran into a strange behavior when I run 'cd' > inside

git rebase -i --exec and changing directory

2018-05-19 Thread Ondrej Mosnáček
Hello, I am trying to run a script to edit multiple commits using 'git rebase -i --exec ...' and I ran into a strange behavior when I run 'cd' inside the --exec command and subsequently run a git command. For example, if the command is 'cd src && git status', then git status reports as if all