tests: cope with change in git merge output format

This commit is contained in:
Augie Fackler 2012-07-31 17:08:37 -05:00
parent f89059b98d
commit 58e29c9254
4 changed files with 5 additions and 5 deletions

View File

@ -48,7 +48,7 @@ git add gamma
commit -m 'add gamma' commit -m 'add gamma'
# clean merge # clean merge
git merge beta | sed "s/the '//;s/' strategy//" | sed 's/^Merge.*recursive.*$/Merge successful/' | sed 's/files/file/;s/insertions/insertion/;s/, 0 deletions.*//' git merge beta | sed "s/the '//;s/' strategy//" | sed 's/^Merge.*recursive.*$/Merge successful/' | sed 's/files/file/;s/insertions/insertion/;s/, 0 deletions.*//' | sed 's/| +/| /'
cd .. cd ..
mkdir gitrepo2 mkdir gitrepo2

View File

@ -3,7 +3,7 @@ Initialized empty Git repository in gitrepo/.git/
Switched to a new branch "beta" Switched to a new branch "beta"
Switched to branch "master" Switched to branch "master"
Merge successful Merge successful
beta | 1 + beta | 1 +
1 file changed, 1 insertion(+) 1 file changed, 1 insertion(+)
create mode 100644 beta create mode 100644 beta
Initialized empty Git repository in gitrepo2/ Initialized empty Git repository in gitrepo2/

View File

@ -53,7 +53,7 @@ echo delta > delta
git add delta git add delta
commit -m 'add delta' commit -m 'add delta'
git merge branch1 branch2 | sed "s/the '//;s/' strategy//" | sed 's/^Merge.*octopus.*$/Merge successful/;s/, 0 deletions.*//' git merge branch1 branch2 | sed "s/the '//;s/' strategy//" | sed 's/^Merge.*octopus.*$/Merge successful/;s/, 0 deletions.*//' | sed 's/| +/| /'
cd .. cd ..
mkdir gitrepo2 mkdir gitrepo2

View File

@ -6,8 +6,8 @@ Switched to branch "master"
Trying simple merge with branch1 Trying simple merge with branch1
Trying simple merge with branch2 Trying simple merge with branch2
Merge successful Merge successful
beta | 1 + beta | 1 +
gamma | 1 + gamma | 1 +
2 files changed, 2 insertions(+) 2 files changed, 2 insertions(+)
create mode 100644 beta create mode 100644 beta
create mode 100644 gamma create mode 100644 gamma