Skip to content
Snippets Groups Projects
Commit cdb3e240 authored by nimrod's avatar nimrod
Browse files

Moved git update-requirements to a seperate script.

parent 9da40372
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,6 @@
tag-version = !git tag --annotate --force --message "v$(cat VERSION)" "v$(cat VERSION)"
tracking = rev-parse --abbrev-ref --symbolic-full-name @{upstream}
trigger = !git commit --allow-empty --no-edit --amend && git push --force-with-lease
update-requirements = !git stash save -a -u -q && ( git ls-files '*requirements*.txt' | xargs -n1 pur -r ) && ( git commit -a -m '- Updated requirements.' || echo 'No requirements updated.' ) && git stash pop
[color]
grep = true
[diff]
......
#!/bin/sh
set -eu
which pur > /dev/null || { echo "Can't find pur."; exit 1; }
git stash save --all --include-untracked --quiet
git ls-files '*requirements*.txt' | xargs -n1 pur -r
git commit -a -m '- Updated requirements.' || echo 'No requirements updated.'
git stash pop
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment