summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-08-28 23:17:50 -0400
committerMalf Furious <m@lfurio.us>2017-08-28 23:17:50 -0400
commitbb0fa66ad17a0e1268ce4fd66506821c64173d67 (patch)
tree6c1bdc4533d2f06b1cfd866e0781a625b9ae49ec
parente8388931a8b6228a9c38897b81b1abe4d31d46ab (diff)
downloadsystrunk-bb0fa66ad17a0e1268ce4fd66506821c64173d67.tar.gz
systrunk-bb0fa66ad17a0e1268ce4fd66506821c64173d67.zip
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.
-rw-r--r--repo-access.sh4
1 files changed, 1 insertions, 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"