Feature #10207

Git: use default branch from HEAD

Added by Toshi MARUYAMA over 10 years ago. Updated over 10 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Toshi MARUYAMA% Done:

0%

Category:SCM
Target version:1.4.0
Resolution:Fixed

Description

https://www.chiliproject.org/issues/749

Redmine 1.3 uses "master" as git default branch.

You can change HEAD by "git symbolic-ref" on bare repository.

$ git branch
* master
  master-20120211

$ git symbolic-ref HEAD refs/heads/master-20120211
$ git branch
  master
* master-20120211

git-default-branch.png (50.9 KB) Toshi MARUYAMA, 2012-02-12 07:07

Associated revisions

Revision 8855
Added by Toshi MARUYAMA over 10 years ago

scm: git: update test repository (#10207)

New "master-20120212" branch is added.
Git branch is the reference to the specific revision.
This branch points the same revision with "master" branch.

Revision 8856
Added by Toshi MARUYAMA over 10 years ago

scm: git: use default branch from HEAD (#10207)

Revision 8857
Added by Toshi MARUYAMA over 10 years ago

scm: git: explicitly return string as default branch (#10207)

History

#1 Updated by Toshi MARUYAMA over 10 years ago

  • Description updated (diff)

#2 Updated by Toshi MARUYAMA over 10 years ago

  • Status changed from New to Closed
  • Target version set to 1.4.0
  • Resolution set to Fixed

Implemented in trunk r8855, r8856 and r8857.

Also available in: Atom PDF