git-svn: allow dcommit for those who only fetch from SVM with useSvmProps
[gitweb.git] / git-commit.sh
index ec506d956fa2858897c53b35d28db8083b7fdcec..476f4f18dbb76041fbbfe6243785ad4997a7e7c7 100755 (executable)
@@ -318,6 +318,10 @@ esac
 
 case "$all,$also" in
 t,)
+       if test ! -f "$THIS_INDEX"
+       then
+               die 'nothing to commit (use "git add file1 file2" to include for commit)'
+       fi
        save_index &&
        (
                cd_to_toplevel &&