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 <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ramkumar Ramachandra committed
Nov 18, 2013 at 23:09 UTC
bc147968a4ab0d4fb069b00c9a08ff353266c1f6
1 file changed
+2
-5
t/t6300-for-each-ref.sh
+2
-5
@@ -18,16 +18,13 @@ setdate_and_increment () {
18
export GIT_COMMITTER_DATE GIT_AUTHOR_DATE
19
}
20
21
-test_expect_success 'Create sample commit with known timestamp' '
21
+test_expect_success setup '
22
setdate_and_increment &&
23
echo "Using $datestamp" > one &&
24
git add one &&
25
git commit -m "Initial" &&
26
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 &&
28
git update-ref refs/remotes/origin/master master &&
29
git remote add origin nowhere &&
30
git config branch.master.remote origin &&