aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2023-03-23 12:41:39 +0800
committerHsieh Chin Fan <pham@topo.tw>2023-03-23 12:41:39 +0800
commit905246f893ea63144aefc37302674ea9887e2b00 (patch)
treea0b7c6e9285991bdc60c027f0dcb048ae3e92d41
parent5615babc802b35e8c287b87fd1a3d1fb2932a4d1 (diff)
Suppress warning when branch has no upstream
-rwxr-xr-xbin/git/check-repos.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/git/check-repos.sh b/bin/git/check-repos.sh
index 5180fc9..abaa3a2 100755
--- a/bin/git/check-repos.sh
+++ b/bin/git/check-repos.sh
@@ -28,7 +28,7 @@ while read repo remote; do
28 changes="$(git -c color.status=always status --short)" 28 changes="$(git -c color.status=always status --short)"
29 29
30 # Diff between from local repo and remote 30 # Diff between from local repo and remote
31 cherry="$([ -n "`git remote`" ] && git cherry)" 31 cherry="$([ -n "`git remote`" ] && git cherry 2>/dev/null)"
32 32
33 if [[ $COUNT_ONLY == true ]]; then 33 if [[ $COUNT_ONLY == true ]]; then
34 # If '-n' is specified, only count repo with changes/local-diff 34 # If '-n' is specified, only count repo with changes/local-diff