浏览代码

Add an environment variable to set GIT_PATH in git scripts

Nick Mathewson 5 年之前
父节点
当前提交
0635170cf1
共有 2 个文件被更改,包括 2 次插入2 次删除
  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"