aboutsummaryrefslogtreecommitdiff
path: root/modules/git/git-shell-commands/desc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/git-shell-commands/desc')
-rwxr-xr-xmodules/git/git-shell-commands/desc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/git-shell-commands/desc b/modules/git/git-shell-commands/desc
index 52cc8bb..d81f46c 100755
--- a/modules/git/git-shell-commands/desc
+++ b/modules/git/git-shell-commands/desc
@@ -1,6 +1,6 @@
#!/usr/bin/env sh
if [ -f "$1/config" ]; then
- cd "$1"
+ cd "$1" || exit
git config cgit.desc "$2"
fi