topgrade icon indicating copy to clipboard operation
topgrade copied to clipboard

Run specific code after git pulled a directory

Open rodrgz opened this issue 2 years ago • 1 comments

Can be interesting to run specific code like builds and installs (meson build, ninja -C build install, ...) or a shell script in a folder that was git pulled with success. This would improve the upgrade experience for those who compile some things.

rodrgz avatar Jan 19 '22 20:01 rodrgz

Yeah, this would be incredible.

There are a number of git repositories I have cloned locally which I use topgrade to pull latest commits to.

However, I also want/need to keep my forks of them in-step, so I manually cd to each directory and run a shell script/alias to do that:

git fetch upstream && git merge upstream/master master && git push

Saijin-Naib avatar Feb 20 '22 18:02 Saijin-Naib