We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b94c14e commit d66f26fCopy full SHA for d66f26f
git-get
@@ -12,8 +12,8 @@ fi
12
13
repo="$1"
14
15
-if [ -z "$repo" ]; then
16
- echo "Usage git get <repository>"
+if [ -z "$repo" ] || [ "$repo" == "-h" ]; then
+ echo "Usage: git get <repository>"
17
echo
18
echo " git-get clones <repository> into a folder derived from the repository URL"
19
@@ -22,7 +22,12 @@ if [ -z "$repo" ]; then
22
23
echo " You can override the default base path (~/code) with"
24
echo " git config --global get.loation \"/path/to/your/code\""
25
- exit 1
+
26
+ if [ "$repo" == "-h" ]; then
27
+ exit
28
+ else
29
+ exit 1
30
+ fi
31
fi
32
33
# Strip scheme
0 commit comments