Changeset 1f4cc3c for asadb


Ignore:
Timestamp:
Dec 12, 2011, 12:22:30 AM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage, test-hooks
Children:
c060d8c
Parents:
d7f5dc5
git-author:
Alex Dehnert <adehnert@…> (12/12/11 00:22:30)
git-committer:
Alex Dehnert <adehnert@…> (12/12/11 00:22:30)
Message:

Don't make empty static data commits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/util/diff_static_data.sh

    r728cafa r1f4cc3c  
    1010git add group-perms.py
    1111
     12
    1213echo
    1314echo Committing current static data:
    14 git commit -m "Updated static data: $(date +%F)" --allow-empty --author="$author"
     15set +e
     16git commit -m "Updated static data: $(date +%F)" --author="$author"
     17commit_result="$?"
     18set -e
    1519
    16 echo
    17 echo Changes in this commit:
    18 git show
     20if [ "$commit_result" = "0" ]; then
     21    echo
     22    echo Changes in this commit:
     23    git show
     24else
     25    echo "(No changes made.)"
     26fi
    1927
    2028echo
Note: See TracChangeset for help on using the changeset viewer.