Skip to content

Commit bc14796

Browse files
artagnongitster
authored andcommitted
t6300 (for-each-ref): clearly demarcate setup
Condense the two-step setup into one step, and give it an appropriate name. Signed-off-by: Ramkumar Ramachandra <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 42817b9 commit bc14796

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

t/t6300-for-each-ref.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,13 @@ setdate_and_increment () {
1818
export GIT_COMMITTER_DATE GIT_AUTHOR_DATE
1919
}
2020

21-
test_expect_success 'Create sample commit with known timestamp' '
21+
test_expect_success setup '
2222
setdate_and_increment &&
2323
echo "Using $datestamp" > one &&
2424
git add one &&
2525
git commit -m "Initial" &&
2626
setdate_and_increment &&
27-
git tag -a -m "Tagging at $datestamp" testtag
28-
'
29-
30-
test_expect_success 'Create upstream config' '
27+
git tag -a -m "Tagging at $datestamp" testtag &&
3128
git update-ref refs/remotes/origin/master master &&
3229
git remote add origin nowhere &&
3330
git config branch.master.remote origin &&

0 commit comments

Comments
 (0)