Преглед на файлове

scripts: In git-pull-all.sh, also fetch the latest tor-github pull requests

Implements ticket 30114.
teor преди 5 години
родител
ревизия
5722c6d12d
променени са 2 файла, в които са добавени 20 реда и са изтрити 1 реда
  1. 3 0
      changes/ticket30114
  2. 17 1
      scripts/git/git-pull-all.sh

+ 3 - 0
changes/ticket30114

@@ -0,0 +1,3 @@
+  o Minor features (git scripts):
+    - In git-pull-all.sh, also fetch the latest tor-github pull requests.
+      Implements ticket 30114.

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

@@ -174,6 +174,19 @@ function fetch_origin
   fi
 }
 
+# Fetch tor-github pull requests. No arguments.
+function fetch_tor_github
+{
+  local cmd="git fetch tor-github"
+  printf "  %s Fetching tor-github..." "$MARKER"
+  if [ $DRY_RUN -eq 0 ]; then
+    msg=$( eval "$cmd" 2>&1 )
+    validate_ret $? "$msg"
+  else
+    printf "\\n      %s\\n" "${IWTH}$cmd${CNRM}"
+  fi
+}
+
 ###############
 # Entry point #
 ###############
@@ -188,8 +201,11 @@ while getopts "n" opt; do
   esac
 done
 
-# First, fetch the origin.
+# First, fetch tor-github.
 goto_repo "$ORIGIN_PATH"
+fetch_tor_github
+
+# Then, fetch the origin.
 fetch_origin
 
 # Go over all configured worktree.