Explorar el Código

Add an environment variable to set GIT_PATH in git scripts

Nick Mathewson hace 5 años
padre
commit
0635170cf1
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      scripts/git/git-merge-forward.sh
  2. 1 1
      scripts/git/git-pull-all.sh

+ 1 - 1
scripts/git/git-merge-forward.sh

@@ -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"

+ 1 - 1
scripts/git/git-pull-all.sh

@@ -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"