diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2010-06-14 00:28:50 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-14 10:32:02 -0700 |
commit | 18c8ff46104302ea30e879a0f2cb5eefb94df1a4 (patch) | |
tree | 6d18767b4cc22a3c2397bd86c1f6e9e70cd1a79f /upload-pack.c | |
parent | Documentation/revert: describe passing more than one commit (diff) | |
download | tgif-18c8ff46104302ea30e879a0f2cb5eefb94df1a4.tar.xz |
t3508 (cherry-pick): futureproof against unmerged files
Each of the tests in t3508 begins by navigating to a sane state:
git checkout master &&
git reset --hard $commit
If a previous test left unmerged files around, they are untouched and
the checkout fails, causing later tests to fail, too. This is not a
problem in practice because no test except the final one produces
unmerged files.
But as a futureproofing measure, it is still best to avoid the problem
with 'checkout -f'. In particular, this is needed for new tests to be
added to the end of the script.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'upload-pack.c')
0 files changed, 0 insertions, 0 deletions