repo.or.cz
/
git
/
jnareb-git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Display an error from update-ref if target ref name is invalid.
[git/jnareb-git.git]
/
t
/
t8001-annotate.sh
blob
3a6490e8f864b3b3193a7b86d54a0e8d81d0dd20
1
#!/bin/sh
2
3
test_description
=
'git-annotate'
4
. .
/
test-lib.sh
5
6
PROG
=
'git annotate'
7
. ..
/
annotate-tests.sh
8
9
test_expect_success \
10
'Annotating an old revision works'
\
11
'[ $(git annotate file master | awk "{print \
$3
}" | grep -c "^A$") -eq 2 ] && \
12
[ $(git annotate file master | awk "{print \
$3
}" | grep -c "^B$") -eq 2 ]'
13
14
15
test_done