Can't set default branch ("HEAD") on a Git repository
Bug #1456625 reported by
Colin Watson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Colin Watson | ||
turnip |
Fix Released
|
High
|
Colin Watson |
Bug Description
Some workflows require setting HEAD to something other than the initial default; this controls the initial branch that's checked out when you clone, and the default shown by some cgit views. There's no way to set this over the git protocol, so it needs explicit support in Launchpad.
Compare, for example:
Related branches
lp:~cjwatson/turnip/default-branch
- William Grant: Approve (code)
-
Diff: 123 lines (+84/-0)3 files modifiedturnip/api/store.py (+10/-0)
turnip/api/tests/test_api.py (+39/-0)
turnip/api/views.py (+35/-0)
lp:~cjwatson/launchpad/db-gitrepository-default-branch
- William Grant: Approve (db)
- Stuart Bishop: Pending (db) requested
-
Diff: 14 lines (+10/-0)1 file modifieddatabase/schema/patch-2209-61-7.sql (+10/-0)
lp:~cjwatson/launchpad/git-default-branch
- William Grant: Approve (code)
-
Diff: 436 lines (+196/-6)11 files modifiedlib/lp/code/browser/gitrepository.py (+14/-1)
lib/lp/code/browser/tests/test_gitrepository.py (+48/-0)
lib/lp/code/configure.zcml (+4/-2)
lib/lp/code/errors.py (+20/-1)
lib/lp/code/interfaces/githosting.py (+14/-0)
lib/lp/code/interfaces/gitrepository.py (+15/-1)
lib/lp/code/model/githosting.py (+19/-0)
lib/lp/code/model/gitjob.py (+7/-0)
lib/lp/code/model/gitrepository.py (+19/-0)
lib/lp/code/model/tests/test_gitjob.py (+6/-1)
lib/lp/code/model/tests/test_gitrepository.py (+30/-0)
Changed in turnip: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Colin Watson (cjwatson) |
Changed in turnip: | |
status: | In Progress → Fix Released |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in db-stable r13055 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ db-stable/ revision/ 13055>.