Bug 999485

Summary: When cloning repository, the first branch according to alphabetical order is checked out
Product: [Retired] JBoss BRMS Platform 6 Reporter: Jiri Locker <jlocker>
Component: Business CentralAssignee: Alexandre Porcelli <porcelli>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Locker <jlocker>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: rzhang
Target Milestone: ER3   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:17:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jiri Locker 2013-08-21 11:56:59 UTC
Description of problem:
Currently it is not possible to specify which branch to check out when cloning a repo. I would expect that workbench checks out either master or the branch that is currently checked out on the remote repository. Instead it checks out the first branch according to alphabetical order. Very surprising.

Version-Release number of selected component (if applicable):
ER1

How reproducible:
-

Steps to Reproduce:
1. prepare a repository with some commits on master
2. make a branch that is 1 commit behind master:
   $ git branch abranch HEAD~
3. clone the repository into workbench and make a commit by creating a rule
4. go to .niogit/<your_repo>.git and view 'abranch':
   $ git log abranch

Actual results:
New commits are made on abranch although that:
1. master was currently checked out on the remote repository
2. master is the best default
3. master is newer than abranch

Expected results:
Either it should be possible to specify which branch to check out after cloning or a sensible default should be used (master or currently checked out branch).

Additional info:

Comment 1 Alexandre Porcelli 2013-08-26 14:10:55 UTC
Bug fixed on community UberFire master and 0.3.x branch:

https://github.com/droolsjbpm/uberfire/commit/0e3169c66
https://github.com/droolsjbpm/uberfire/commit/4cecfad78

Comment 2 Jiri Locker 2013-09-27 09:04:36 UTC
Fixed in ER3.