summaryrefslogtreecommitdiffstats
path: root/resolvers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'resolvers.sh')
-rw-r--r--resolvers.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/resolvers.sh b/resolvers.sh
index ff4e38f..80781c3 100644
--- a/resolvers.sh
+++ b/resolvers.sh
@@ -15,7 +15,8 @@ function get_commit
cat ".systr/BASE"
elif [[ "$1" == "TRAC" ]]; then
- cat ".systr/TRAC"
+ read trac <.systr/TRAC
+ get_commit "$trac"
elif [[ "$1" == "NULL" ]]; then
echo "NULL"
@@ -23,6 +24,11 @@ function get_commit
elif [ -f "$path/refs/$1" ]; then
cat "$path/refs/$1"
+ elif [[ ${1:0:5} == "refs/" ]]; then
+ if [ -f "$path/$1" ]; then
+ cat "$path/$1"
+ fi
+
elif [ -f "$path/$1/.commit.systr" ]; then
echo "$1"