use replace way to get target branch instead of split release-0.19
authorZhang Qiang <qiang.z.zhang@intel.com>
Mon, 28 Oct 2013 03:19:06 +0000 (11:19 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Mon, 28 Oct 2013 03:23:17 +0000 (11:23 +0800)
Fixes: #1421

Change-Id: Icf9ccbf65ac7059488ea2f976a60d4a9eedbd75e

debian/changelog
docs/RELEASE_NOTES
gitbuildsys/cmd_submit.py
packaging/gbs.changes

index 1d9ce5c..c1af3ab 100644 (file)
@@ -10,6 +10,7 @@ gbs (0.19-1) unstable; urgency=high
     including insert patches and VCS tag
   * [export] use commit sha1 instead of tag name in spec file VCS tag
   * [clone] add directory argument to gbs clone
+  * [submit] support '/' in git branch
   * [conf] overwrite different level of gbs.conf instead of clean up them.
   * [conf] load project special gbs.conf if gitdir specified
   * update dependencies:
index 809b339..e3d264e 100644 (file)
@@ -17,6 +17,8 @@ Release notes for gbs 0.19
     - update all spec file if multiple spec files exist, updates
       including insert patches and VCS tag
     - use commit sha1 instead of tag name in spec file VCS tag
+  * submit:
+    - support '/' in git branch
   * clone:
     - add directory argument to gbs clone
   * conf parser:
index 5e466e4..9308d68 100644 (file)
@@ -87,7 +87,7 @@ def main(args):
         target = args.target
         if not target:
             if upstream and upstream.startswith(args.remote):
-                target = os.path.basename(upstream)
+                target = re.sub('^%s/' % args.remote, '', upstream)
             else:
                 log.warning("Can't find upstream branch for current branch "
                             "%s. Gbs uses the local branch name as the target. "
index 8709448..5cc0af8 100644 (file)
@@ -10,6 +10,7 @@
     including insert patches and VCS tag
   * [export] use commit sha1 instead of tag name in spec file VCS tag
   * [clone] add directory argument to gbs clone
+  * [submit] support '/' in git branch
   * [conf] overwrite different level of gbs.conf instead of clean up them.
   * [conf] load project special gbs.conf if gitdir specified
   * update dependencies: