Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2020-01-17 17:55:34 +0300
committerPhie <phie@phie.ovh>2020-01-17 17:55:34 +0300
commit2d9e119be2041621a5ae1aee84fa49c9a0a29804 (patch)
treec1b13c98ab2073c5135c903cd3b2eadc4e83d31d /to_stable_branch.sh
parentc6c9013d3e4c05e2a4a195f726129f09c4bf137c (diff)
new to_stable_branch script
Diffstat (limited to 'to_stable_branch.sh')
-rw-r--r--to_stable_branch.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/to_stable_branch.sh b/to_stable_branch.sh
index 281ac1a..28a22bc 100644
--- a/to_stable_branch.sh
+++ b/to_stable_branch.sh
@@ -1,9 +1,11 @@
#!/bin/bash
-
+version=$(sed -n -e 's/.*<version>\(.*\)<\/version>.*/\1/p' appinfo/info.xml)
git branch -d stable
git push origin --delete stable
git checkout master
git checkout -b stable
git push origin stable
+git checkout -b stable-$version
+git push origin stable-$version
git checkout master