Kristian Høgsberg <krh@xxxxxxxxxx> writes: > +# Pick a date so we get consistent commits. 7/7/07 means good luck! > +export GIT_AUTHOR_DATE="July 7, 2007" > +export GIT_COMMITTER_DATE="July 7, 2007" Other scripts use test_tick for consistent commits; just to let you know, the above is as good if you intend to use only one timestamp. > +echo "bongo bongo" >file > +test_expect_success \ > + "initial status" \ > + "git-add file && \ > + git-status | grep 'Initial commit'" We tend to prefer to have the "create testfile" part also in the test. > +test_expect_failure \ > + "fail initial amend" \ > + "git-commit -m initial --amend" Does it fail because it is initial, or because these two options, "-m <msg>" and "--amend", are incompatible? > +echo "bongo bongo bongo" >file Ditto. > +cat >msg <<EOF > + > + > + > +Signed-off-by: hula > +EOF ... except <<here text are left outside of test_expect_success because there were reports that some shells cannot grok here text in eval correctly. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html