Changeset 6af0619 in git


Ignore:
Timestamp:
Sep 1, 2013, 7:49:05 AM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
33300d4ad90715d708a710a5502d93085a489c92
Parents:
6d8e2669e50eb4935d9ecff82b7262bf629c3286
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-09-01 07:49:05+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-09-01 07:50:04+02:00
Message:
Fixed return status for git-version-gen
File:
1 edited

Legend:

Unmodified
Added
Removed
  • git-version-gen

    r6d8e26 r6af0619  
    55if [ -d "$GIT_WORK_TREE/.git" ] && v=`git log --pretty=format:'%h' --abbrev-commit -1 2>/dev/null`
    66then
    7  dirty=`sh -c "git diff-index --name-status HEAD 2>/dev/null | sed -e 's|^\([A-Z]\).*|\1|g' | tr -d '\012'"` && [ -n "$dirty" ] && echo -n "$v|$dirty" && exit 0
     7 if dirty=`sh -c "git diff-index --name-status HEAD 2>/dev/null | sed -e 's|^\([A-Z]\).*|\1|g' | tr -d '\012'"` && [ -n "$dirty" ]
     8 then
     9   echo -n "$v|$dirty"
     10 else
     11   echo -n "$v"
     12 fi
     13# exit 0
    814else
    915 F="$1"
Note: See TracChangeset for help on using the changeset viewer.