kiegroup / git-backporting

Git backporting is a CLI tool to execute pull request backporting.
MIT License
16 stars 9 forks source link

Git clone by default into temporary directory #86

Open shyim opened 11 months ago

shyim commented 11 months ago

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.

lampajr commented 11 months ago

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.