From bb0fa66ad17a0e1268ce4fd66506821c64173d67 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Mon, 28 Aug 2017 23:17:50 -0400 Subject: Fix bug in ref resolver Fixing problem with control flow -- if one of the trivial cases at the top are hit, then there is no need to hit the repository. --- repo-access.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/repo-access.sh b/repo-access.sh index 9a2f7c8..ad0686b 100644 --- a/repo-access.sh +++ b/repo-access.sh @@ -25,9 +25,7 @@ function systr_repo_resolve_reference systr_repo_resolve_reference "$trac" elif [[ "$symref" == "NULL" ]]; then echo "NULL" - fi - - if [[ "$remote" == "" ]]; then + elif [[ "$remote" == "" ]]; then ( cd "$path" -- cgit v1.2.3