Commit 5ff4735d authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgs: empty version support

parent 93852f96
...@@ -294,7 +294,7 @@ update_post_git_submodules() ...@@ -294,7 +294,7 @@ update_post_git_submodules()
info "Detected post git submodules hook" info "Detected post git submodules hook"
cat $(get_root_git_dir)/.gear/rules | grep -q "tar:.*-postsubmodules" || fatal "missed tar:.gear/$BASENAME-postmodules in $(get_root_git_dir)/.gear/rules" cat $(get_root_git_dir)/.gear/rules | grep -q "tar:.*-postsubmodules" || fatal "missed tar:.gear/$BASENAME-postsubmodules in $(get_root_git_dir)/.gear/rules"
[ -s $(get_root_git_dir)/.gitmodules ] || fatal "there is no .gitmodules file in repo root" [ -s $(get_root_git_dir)/.gitmodules ] || fatal "there is no .gitmodules file in repo root"
cd $(get_root_git_dir) || fatal cd $(get_root_git_dir) || fatal
...@@ -576,8 +576,9 @@ do ...@@ -576,8 +576,9 @@ do
docmd git remote add upstream $GETSOURCEGIT docmd git remote add upstream $GETSOURCEGIT
docmd git fetch --tags upstream || fatal docmd git fetch --tags upstream || fatal
#TODO check tag: v%version or %version #TODO check tag: v%version or %version
[ -n "$GSSETVERSION" ] || fatal "Sorry, I don't know new version" if [ -z "$GSSETVERSION" ] ; then
if [ "$GSSETVERSION" = "HEAD" ] ; then warning "Empty new version variable"
elif [ "$GSSETVERSION" = "HEAD" ] ; then
docmd git merge upstream/master docmd git merge upstream/master
else else
# some heuristics # some heuristics
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment