aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-04-17 20:36:26 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-04-17 20:36:26 -0300
commitaf93ab6f84fc034c03393defec9287f55007b3cb (patch)
tree944ffe47a854b394e2abaf3197ccf77a6272a8ab
parent99f2f11436e2e84f8fafb22cc66e1bdd8047d903 (diff)
downloadscripts-af93ab6f84fc034c03393defec9287f55007b3cb.tar.gz
scripts-af93ab6f84fc034c03393defec9287f55007b3cb.tar.bz2
Commit: minor fix
-rwxr-xr-xcommit2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit b/commit
index 4be63d2..a9ae29c 100755
--- a/commit
+++ b/commit
@@ -88,7 +88,7 @@ function git_push {
# Check user information
function git_user {
- if [ -z "`git config user.email`" ] && [ -z "`git config user.name`" ]; then
+ if [ -z "`git config user.email`" ] || [ -z "`git config user.name`" ]; then
if echo $ARGS | grep -q -- '--config'; then
if grep -q "^\[user\]" $HOME/.gitconfig; then
grep -A 2 "^\[user\]" $HOME/.gitconfig >> $GIT_FOLDER/.git/config