Add support for wildcards in svn remote configuration.
BUG=none TEST=manual Review URL: http://codereview.chromium.org/6598068 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78741 0039d316-1c4b-4281-b951-d872f2087c98experimental/szager/collated-output
parent
5c8c6de7e5
commit
866276c2ec
@ -0,0 +1,32 @@
|
|||||||
|
#!/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
|
||||||
Loading…
Reference in New Issue