mirror of
https://github.com/git/git.git
synced 2026-02-23 08:11:05 +00:00
Sync with 1.5.6.5
This commit is contained in:
@@ -1070,4 +1070,24 @@ test_expect_success \
|
||||
test_cmp expect actual
|
||||
'
|
||||
|
||||
test_expect_success 'filename for the message is relative to cwd' '
|
||||
mkdir subdir &&
|
||||
echo "Tag message in top directory" >msgfile-5 &&
|
||||
echo "Tag message in sub directory" >subdir/msgfile-5 &&
|
||||
(
|
||||
cd subdir &&
|
||||
git tag -a -F msgfile-5 tag-from-subdir
|
||||
) &&
|
||||
git cat-file tag tag-from-subdir | grep "in sub directory"
|
||||
'
|
||||
|
||||
test_expect_success 'filename for the message is relative to cwd' '
|
||||
echo "Tag message in sub directory" >subdir/msgfile-6 &&
|
||||
(
|
||||
cd subdir &&
|
||||
git tag -a -F msgfile-6 tag-from-subdir-2
|
||||
) &&
|
||||
git cat-file tag tag-from-subdir-2 | grep "in sub directory"
|
||||
'
|
||||
|
||||
test_done
|
||||
|
||||
@@ -138,4 +138,33 @@ test_expect_success '--signoff' '
|
||||
diff expect output
|
||||
'
|
||||
|
||||
test_expect_success 'commit message from file (1)' '
|
||||
mkdir subdir &&
|
||||
echo "Log in top directory" >log &&
|
||||
echo "Log in sub directory" >subdir/log &&
|
||||
(
|
||||
cd subdir &&
|
||||
git commit --allow-empty -F log
|
||||
) &&
|
||||
commit_msg_is "Log in sub directory"
|
||||
'
|
||||
|
||||
test_expect_success 'commit message from file (2)' '
|
||||
rm -f log &&
|
||||
echo "Log in sub directory" >subdir/log &&
|
||||
(
|
||||
cd subdir &&
|
||||
git commit --allow-empty -F log
|
||||
) &&
|
||||
commit_msg_is "Log in sub directory"
|
||||
'
|
||||
|
||||
test_expect_success 'commit message from stdin' '
|
||||
(
|
||||
cd subdir &&
|
||||
echo "Log with foo word" | git commit --allow-empty -F -
|
||||
) &&
|
||||
commit_msg_is "Log with foo word"
|
||||
'
|
||||
|
||||
test_done
|
||||
|
||||
Reference in New Issue
Block a user