summaryrefslogtreecommitdiff
path: root/src/gitget
diff options
context:
space:
mode:
Diffstat (limited to 'src/gitget')
-rwxr-xr-xsrc/gitget/gitget4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gitget/gitget b/src/gitget/gitget
index 461dffc..256b4e4 100755
--- a/src/gitget/gitget
+++ b/src/gitget/gitget
@@ -200,6 +200,10 @@ main() {
local urlfrag=${url#*#}
local ref=${urlfrag#*=}
+ if [[ -z $ref ]]; then
+ ref=master
+ fi
+
name=${name:-${dir##*/}}
case "$mode" in