Skip to content

Commit

Permalink
sandboxrepo: set origin url differently for git 2.12.1?
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jun 18, 2017
1 parent e497089 commit fd8b0aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/git-open.bats
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,12 @@ function create_git_sandbox() {

git init -q
git config user.email "[email protected]" && git config user.name "Test Runner"

# newer git auto-creates the origin remote
if [ $(git remote) ]; then
if ! git remote add origin "github.com:paulirish/git-open.git"; then
git remote set-url origin "github.com:paulirish/git-open.git"
else
git remote add origin "github.com:paulirish/git-open.git"
fi

git checkout -B "master"

echo "ok" > readme.txt
Expand Down

0 comments on commit fd8b0aa

Please sign in to comment.