Can't set default branch ("HEAD") on a Git repository
Bug #1456625 reported by
Colin Watson
on 2015-05-19
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Launchpad itself |
High
|
Colin Watson | ||
| | turnip |
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) on 2015-05-19
-
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) on 2015-05-22
- Stuart Bishop: Pending (db) requested 2015-05-19
-
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) on 2015-06-15
-
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)
Colin Watson (cjwatson)
on 2015-05-19
| Changed in turnip: | |
| status: | New → In Progress |
| importance: | Undecided → High |
| assignee: | nobody → Colin Watson (cjwatson) |
| Launchpad QA Bot (lpqabot) wrote : | #1 |
| Changed in launchpad: | |
| assignee: | nobody → Colin Watson (cjwatson) |
| tags: | added: qa-needstesting |
| Changed in launchpad: | |
| status: | Triaged → Fix Committed |
| Colin Watson (cjwatson) wrote : | #2 |
2015-05-22 11:12:40,132 INFO 2209-61-7 applied just now in 0.1 seconds
| tags: |
added: qa-ok removed: qa-needstesting |
| Changed in launchpad: | |
| status: | Fix Committed → In Progress |
Colin Watson (cjwatson)
on 2015-06-13
| Changed in turnip: | |
| status: | In Progress → Fix Released |
| Launchpad QA Bot (lpqabot) wrote : | #3 |
Fixed in stable r17568 <http://
| tags: |
added: qa-needstesting removed: qa-ok |
| Changed in launchpad: | |
| status: | In Progress → Fix Committed |
Colin Watson (cjwatson)
on 2015-06-15
| tags: |
added: qa-ok removed: qa-needstesting |
Colin Watson (cjwatson)
on 2015-06-17
| 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>.