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:54:42 +0300
committerPhie <phie@phie.ovh>2020-01-17 17:54:42 +0300
commite93653cdc0e0fb7b2a82023b55924edd507dd9ec (patch)
treec1b13c98ab2073c5135c903cd3b2eadc4e83d31d
parentb0122e339edff952fc7d6fc07a3f509befbbc247 (diff)
new to_stable_branch script
-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