summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-shell-commands/change-description2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-shell-commands/change-description b/git-shell-commands/change-description
index a4cb197..730777c 100755
--- a/git-shell-commands/change-description
+++ b/git-shell-commands/change-description
@@ -7,6 +7,6 @@ set -e
repo=$1; shift
-echo "${@}" > ${repo}.git/description
+test -d ${repo}.git && echo "${@}" > ${repo}.git/description
exit $?