There was an error while loading. Please reload this page.
1 parent c5128ca commit 56188b9Copy full SHA for 56188b9
1 file changed
git-gitlab.sh
@@ -23,7 +23,7 @@ instance_name() {
23
grep -B 5 "^\s*url\s*=\s*http\(s\)*://$host" ~/.python-gitlab.cfg | grep "^\[" | tail -n 1 | sed -e 's#\[\(.\+\)\]#\1#'
24
}
25
26
-remote=$(git config --local gitlab.remote)
+remote=$(git config gitlab.remote)
27
[ -n "$remote" ] || remote=$(git remote)
28
if [ "x$1" = "x--remote" ]; then
29
remote=$2
@@ -34,7 +34,11 @@ if [ -z "$remote" ]; then
34
exit 1
35
fi
36
if [ $(echo $remote | wc -w) -gt 1 ]; then
37
- echo "Multiple remotes found, specify a remote using --remote REMOTE"
+ echo <<EOF
38
+Multiple remotes found, specify a remote using '--remote REMOTE' argument
39
+Alternatively, you can configure your git repository using the command:
40
+git config --local gitlab.remote REMOTE"
41
+EOF
42
43
44
0 commit comments