From c93e90a01211396cdbf95e16311bfba407d4a005 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Fri, 12 May 2017 20:10:35 +0300
Subject: [PATCH] - Replaced update-requirements shell function that commits to
 Git with a simpler shell alias to just update the requirements files without
 any Git.

---
 .bashrc | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/.bashrc b/.bashrc
index 8ab53d0..d020d3a 100644
--- a/.bashrc
+++ b/.bashrc
@@ -74,6 +74,7 @@ alias docker-build='docker build -t "$(basename $PWD)" ./'
 alias cdtemp='cd $(mktemp -d)'
 alias 0-day-cleanup='ssh xbmc.shore.co.il "sudo -u debian-transmission find /srv/library/Comics -name *.part -path *0-Day\ Week\ of* -delete"'
 alias httpbin='tox -c $HOME/.tox.ini.httpbin --'
+alias update-requirements='find -name "*requirements*.txt" -exec pur --requirement {} \;'
 
 deduce-aws-region () {
     AWS_DEFAULT_REGION="$(curl --silent \
@@ -116,20 +117,5 @@ sync-comics () {
     rsync --recursive --compress --progress --exclude "*.part" "$last_month" "$this_month" "$HOME/Downloads/Comics/"
 }
 
-update-requirements () {
-    reporoot="$(git rev-parse --show-toplevel) || (echo Failed to find Git repo.
-    && return 1)"
-    # shellcheck disable=SC2164
-    cd "$reporoot"
-    for file in $(git ls-files "*requirements*.txt")
-    do
-        pur --requirement "$file"
-        git add "$file"
-    done
-    git commit -m"- Updated requirements."
-    # shellcheck disable=SC2164
-    cd - > /dev/null
-}
-
 # shellcheck disable=SC1090
 . "$HOME/Documents/Shore/bundle_certs/bundle_certs"
-- 
GitLab