Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: crup-runner.sh

Issue 116583003: Update submodule url unequivocally. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crup-runner.sh
diff --git a/crup-runner.sh b/crup-runner.sh
index 56799dfce26d3f9737d345ba995a2531e41af733..eccb6136f4773caa0efbf98e19e157af4096ded7 100755
--- a/crup-runner.sh
+++ b/crup-runner.sh
@@ -40,7 +40,7 @@ update_submodule_url () {
# this way because `git submodule sync` is absurdly slow.
new_url=$(git config -f .gitmodules "submodule.$1.url" 2>/dev/null)
old_url=$(git config "submodule.$1.url" 2>/dev/null)
- if [ -n "$old_url" -a "$new_url" != "$old_url" ]; then
+ if [ "$new_url" != "$old_url" ]; then
git config "submodule.$1.url" "$new_url"
if [ -e "$1"/.git ]; then
( cd $submod && git config remote.origin.url "$new_url" )
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698