git-ubuntu clone should setup remote-tracking branches
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-ubuntu |
Fix Released
|
Medium
|
Robie Basak |
Bug Description
git-ubuntu currently doesn't setup remote tracking branches when cloning:
-------
$ git-ubuntu clone hello
$ cd hello
$ git branch
* ubuntu/devel
$ git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-
-------
If manually configured it works fine:
-------
$ git branch --set-upstream-
branch 'ubuntu/devel' set up to track 'pkg/ubuntu/devel'.
$ git pull
Already up to date.
-------
I believe this should be the default, as it's sometimes useful to update branches in locally cloned branches when the archive moves.
Related branches
- Athos Ribeiro (community): Approve
- Server Team CI bot: Approve (continuous-integration)
- Canonical Server Reporter: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 146 lines (+92/-9)4 files modifiedgitubuntu/clone.py (+3/-2)
gitubuntu/git_repository.py (+28/-5)
gitubuntu/git_repository_test.py (+58/-0)
gitubuntu/merge.py (+3/-2)
Changed in git-ubuntu: | |
status: | Triaged → In Progress |
assignee: | nobody → Robie Basak (racb) |
Thanks. This seems like a straightforward oversight with a simple fix.