kiegroup / git-backporting

Git backporting is a CLI tool to execute pull request backporting.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Git clone by default into temporary directory

shyim opened this issue · comments

It seems like right now it will be cloned into the current directory as bp. While searching something in my finder i found that folder and thought wtf is that.

I think in default it should be written to /tmp instead of CWD.

Hi @shyim thanks for opening this and sorry for late reply.
I might agree that setting the default directory to /tmp could be a valuable improvement (we initially approached the current working directory for historical reason that to be honest I do not recall atm).

On the other hand this somehow a breaking change because it will change the default behavior the other users might rely on and since there is a way to override the target directory using --folder I would postpone this change to the next major release.

For the records actual README highlights the default is {cwd}/bp where cwd=current working directory.