Skip to content
Snippets Groups Projects
Commit 236e786c authored by Vincent Garonne's avatar Vincent Garonne
Browse files

Merge branch 'patch-RUCIO-1678-gitlabisation_of_the_configure_git_script' into 'master'

[RUCIO-1678] gitlabisation of the configure_git script

See merge request !99
parents 5b32d237 f56b2de7
Branches refactor
No related tags found
No related merge requests found
......@@ -6,7 +6,11 @@
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Authors:
# Vincent Garonne, <vincent.garonne@cern.ch>, 2012
# Vincent Garonne, <vincent.garonne@cern.ch>, 2012-2015
git branch --track next
git remote add upstream https://gitlab.cern.ch/rucio01/rucio.git
git remote set-url --push upstream xxx
cp tools/commit-msg .git/hooks/commit-msg
chmod +x .git/hooks/commit-msg
......
......@@ -77,11 +77,22 @@ if __name__ == '__main__':
answer = query_yes_no("Do you want to release %(new_version)s (current_version: %(current_version)s)?" % locals(), default="no")
if answer:
cmd = "git remote set-url --push upstream https://gitlab.cern.ch/rucio01/rucio.git"
print cmd
cmd = "git tag -a %(new_version)s -m 'Version %(new_version)s'" % locals()
print cmd
# status, output = getstatusoutput(cmd)
cmd = "git push origin %(new_version)s" % locals()
print cmd
cmd = "git push upstream %(new_version)s" % locals()
print cmd
cmd = "git remote set-url --push upstream xxx"
print cmd
# status, output = getstatusoutput(cmd)
print '\n# To undo the release'
cmd = "git push --delete origin %(new_version)s" % locals()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment