From b4c295ebb2ea54c4187795c7a9987e2b31b33bb9 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 6 Dec 2018 14:58:18 +1300 Subject: Correct subcommands for tags generation function I got them around the wrong way... --- watch-git-tags.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'watch-git-tags.sh') 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 -- cgit v1.2.3