Siebrand has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/89628


Change subject: Update repo location for Commons iOS app
......................................................................

Update repo location for Commons iOS app

Change-Id: I0154693f3056d7b3e87e9bd12b693029f1fc5cad
---
M REPOCONF
M REPOCONF.siebrand
M bin/repocommit
M bin/repocreate
4 files changed, 19 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/translatewiki 
refs/changes/28/89628/1

diff --git a/REPOCONF b/REPOCONF
index b728627..00d5bb1 100644
--- a/REPOCONF
+++ b/REPOCONF
@@ -6,7 +6,7 @@
 REPO_MWEXTGIT=https://gerrit.wikimedia.org/r/p/mediawiki/extensions
 
 REPO_COMMONSANDROID=https://gerrit.wikimedia.org/r/p/apps/android/commons.git
-REPO_COMMONSIOS=git://github.com/wikimedia/Commons-iOS.git
+REPO_COMMONSANDROID=https://gerrit.wikimedia.org/r/p/apps/ios/commons.git
 REPO_BLOCKLY=http://blockly.googlecode.com/svn/trunk/
 REPO_EOL=git://github.com/EOL/eol.git
 REPO_ETHERPADLITE=git://github.com/ether/etherpad-lite.git
diff --git a/REPOCONF.siebrand b/REPOCONF.siebrand
index bf7948e..f7c1d7c 100644
--- a/REPOCONF.siebrand
+++ b/REPOCONF.siebrand
@@ -8,7 +8,7 @@
 
 REPO_BLOCKLY=https://blockly.googlecode.com/svn/trunk/
 
REPO_COMMONSANDROID=ssh://l10n-...@gerrit.wikimedia.org:29418/apps/android/commons.git
-REPO_COMMONSIOS=g...@github.com:wikimedia/Commons-iOS.git
+REPO_COMMONSIOS=ssh://l10n-...@gerrit.wikimedia.org:29418/apps/ios/commons.git
 REPO_EOL=g...@github.com:EOL/eol.git
 REPO_ETHERPADLITE=g...@github.com:ether/etherpad-lite.git
 REPO_ETHERPADLITE_BRANCH="develop"
diff --git a/bin/repocommit b/bin/repocommit
index 36f2066..2c7e3af 100755
--- a/bin/repocommit
+++ b/bin/repocommit
@@ -42,7 +42,6 @@
 }
 
 GITCOMMITNOCHECKPROJECTS="\
-commons-ios \
 eol \
 etherpad-lite \
 freecol \
@@ -104,6 +103,13 @@
        git commit -a -m "$COMMITMSG" && git fetch gerrit && git review -t l10n 
|| :
        cd ..
 
+elif [ "$PROJECT" = "commons-ios" ]
+then
+       cd $PROJECT
+       git add .
+       git commit -a -m "$COMMITMSG" && git fetch gerrit && git review -t l10n 
|| :
+       cd ..
+
 elif [ "$PROJECT" = "fudforum" ]
 then
        cd $PROJECT
diff --git a/bin/repocreate b/bin/repocreate
index e3c6b6f..412651b 100755
--- a/bin/repocreate
+++ b/bin/repocreate
@@ -29,12 +29,21 @@
                git review -s
        fi
 
-elif [ "$PROJECT" = "commons-ios" ]
+if [ "$PROJECT" = "commons-ios" ]
 then
        if [ -z "$REPO_COMMONSIOS" ]
        then echo "Add REPO_COMMONSIOS to REPOCONF"; exit 1
        fi
+
        git clone "$REPO_COMMONSIOS" $PROJECT
+       if [ "$REPO_RW" = "yes" ]
+       then
+               cd "$PROJECT"
+               git config user.name 'Translation updater bot'
+               git config user.email 'l10n-...@translatewiki.net'
+               git config gitreview.username 'l10n-bot'
+               git review -s
+       fi
 
 elif [ "$PROJECT" = "blockly" ]
 then

-- 
To view, visit https://gerrit.wikimedia.org/r/89628
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0154693f3056d7b3e87e9bd12b693029f1fc5cad
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Siebrand <siebr...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to