diff options
-rwxr-xr-x | bin/common-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/common-functions b/bin/common-functions index 7b5aa18..d6b4858 100755 --- a/bin/common-functions +++ b/bin/common-functions @@ -21,7 +21,7 @@ find_pkgbuild() { find_repository_with_commit() { for repository in "${!repo_paths[@]}"; do - if [ "$(git -C "${repo_paths["${repository}"]}" cat-file -t "$1")" == "commit" ]; then + if [ "$(git -C "${repo_paths["${repository}"]}" cat-file -t "$1" 2> /dev/null)" == "commit" ]; then echo "${repository}" return 0 fi |