You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
492 B
Bash
33 lines
492 B
Bash
14 years ago
|
#!/bin/bash
|
||
|
|
||
|
# Check guessing the svn upstream branch.
|
||
|
|
||
|
set -e
|
||
|
|
||
|
. ./test-lib.sh
|
||
|
|
||
|
setup_initsvn
|
||
|
setup_gitsvn
|
||
|
|
||
|
(
|
||
|
set -e
|
||
|
cd git-svn
|
||
|
|
||
|
git config rietveld.server localhost:8080
|
||
|
|
||
|
for ref in refs/remotes/trunk refs/remotes/some_branch; do
|
||
|
git checkout -q -B feature_branch $ref
|
||
|
test_expect_success "Guessing upstream branch for $ref" \
|
||
|
"$GIT_CL upstream | egrep -q '^$ref$'"
|
||
|
git checkout -q master
|
||
|
done
|
||
|
)
|
||
|
|
||
|
SUCCESS=$?
|
||
|
|
||
|
cleanup
|
||
|
|
||
|
if [ $SUCCESS == 0 ]; then
|
||
|
echo PASS
|
||
|
fi
|