From b070451ae360a9ce9d45ba93b6364e35b41605ec Mon Sep 17 00:00:00 2001 From: psykose Date: Fri, 13 May 2022 05:48:15 +0000 Subject: [PATCH] apkgrel: pass -- to git with name of file in do_add the name of the file can be ambiguous, as it might also be the name of a branch. passing -- makes git look at it as a file only, and not a potential branch. --- apkgrel.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apkgrel.in b/apkgrel.in index 1fada9f..01a3735 100644 --- a/apkgrel.in +++ b/apkgrel.in @@ -45,7 +45,7 @@ do_add () { local f= old= for f; do [ -n "$only_clean_git" ] \ - && [ -n "$(git diff --name-only "${f%/*}")" ] \ + && [ -n "$(git diff --name-only -- "${f%/*}")" ] \ && continue old=$(show_plain "$f") case $old in