]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add an environment variable to set GIT_PATH in git scripts
authorNick Mathewson <nickm@torproject.org>
Mon, 10 Jun 2019 13:05:26 +0000 (09:05 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 10 Jun 2019 13:05:26 +0000 (09:05 -0400)
scripts/git/git-merge-forward.sh
scripts/git/git-pull-all.sh

index 98ad07c9ccb5d02b0d7c7b0902731918d47e24f7..15af6f3dba0b813f49547f5621814a795765a5d2 100755 (executable)
@@ -14,7 +14,7 @@
 #     ... which means that the tor worktrees are in /home/<user>/git/tor-wkt
 
 # Where are all those git repositories?
-GIT_PATH="FULL_PATH_TO_GIT_REPOSITORY_DIRECTORY"
+GIT_PATH=${TOR_FULL_GIT_PATH:-"FULL_PATH_TO_GIT_REPOSITORY_DIRECTORY"}
 # The tor master git repository directory from which all the worktree have
 # been created.
 TOR_MASTER_NAME="tor"
index ec8511d275967bb8f2b2be39a6821d29f9dc26cf..6fe7e5981209a4b3e133c35a1b78ea8b1872892b 100755 (executable)
@@ -14,7 +14,7 @@
 #     ... which means that the tor worktrees are in /home/<user>/git/tor-wkt
 
 # Where are all those git repositories?
-GIT_PATH="FULL_PATH_TO_GIT_REPOSITORY_DIRECTORY"
+GIT_PATH=${TOR_FULL_GIT_PATH:-"FULL_PATH_TO_GIT_REPOSITORY_DIRECTORY"}
 # The tor master git repository directory from which all the worktree have
 # been created.
 TOR_MASTER_NAME="tor"