aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--watch-git-tags.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/watch-git-tags.sh b/watch-git-tags.sh
index 7dabb71..f8d4265 100644
--- a/watch-git-tags.sh
+++ b/watch-git-tags.sh
@@ -1,8 +1,8 @@
# Function to retrieve and filter tag names
tags() {
case $1 in
- remote) git -C "$repo" show-ref --tags ;;
- local) git -C "$repo" ls-remote --quiet --refs --tags ;;
+ local) git -C "${2:-.}" show-ref --tags ;;
+ remote) git -C "${2:-.}" ls-remote --quiet --refs --tags ;;
*) return 2 ;;
esac |
while read -r _ tag ; do