Procházet zdrojové kódy

Add an environment variable to set GIT_PATH in git scripts

Nick Mathewson před 5 roky
rodič
revize
0635170cf1
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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
 #     ... which means that the tor worktrees are in /home/<user>/git/tor-wkt
 
 
 # Where are all those git repositories?
 # 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
 # The tor master git repository directory from which all the worktree have
 # been created.
 # been created.
 TOR_MASTER_NAME="tor"
 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
 #     ... which means that the tor worktrees are in /home/<user>/git/tor-wkt
 
 
 # Where are all those git repositories?
 # 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
 # The tor master git repository directory from which all the worktree have
 # been created.
 # been created.
 TOR_MASTER_NAME="tor"
 TOR_MASTER_NAME="tor"