Bug 999485 - When cloning repository, the first branch according to alphabetical order is checked out
Summary: When cloning repository, the first branch according to alphabetical order is ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER3
: 6.0.0
Assignee: Alexandre Porcelli
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-21 11:56 UTC by Jiri Locker
Modified: 2014-08-06 20:17 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:17:40 UTC
Type: Bug


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.