git.droids-corp.org
/
git-central.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding a functions and redoing the tattoo to use the r/X tags.
[git-central.git]
/
tests
/
t5500-script-tattoo.sh
diff --git
a/tests/t5500-script-tattoo.sh
b/tests/t5500-script-tattoo.sh
index
bab6dd2
..
561b4bf
100644
(file)
--- a/
tests/t5500-script-tattoo.sh
+++ b/
tests/t5500-script-tattoo.sh
@@
-19,11
+19,14
@@
test_expect_success 'setup' '
# tattoo makes assumptions based on the update stable hook sanity checks
install_update_hook 'update-stable'
# tattoo makes assumptions based on the update stable hook sanity checks
install_update_hook 'update-stable'
+install_post_receive_hook 'post-receive-assign-commit-numbers'
-test_expect_success 'tattoo of
first commit
' '
- gc-tattoo | grep
0
+test_expect_success 'tattoo of
unpublished commit fails
' '
+ gc-tattoo | grep
"No commit number tag found"
'
'
+test_done
+
test_expect_success 'tattoo 1' '
git checkout -b topic1 &&
echo "$test_name" >a.topic1 &&
test_expect_success 'tattoo 1' '
git checkout -b topic1 &&
echo "$test_name" >a.topic1 &&