git-ubuntu clone should setup remote-tracking branches

Bug #1995489 reported by Paride Legovini
6
This bug affects 1 person
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-to=<remote>/<branch> ubuntu/devel
-----------------------------------

If manually configured it works fine:

-----------------------------------
$ git branch --set-upstream-to=pkg/ubuntu/devel ubuntu/devel
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.

Tags: clone ux

Related branches

Revision history for this message
Robie Basak (racb) wrote :

Thanks. This seems like a straightforward oversight with a simple fix.

tags: added: clone
tags: added: ux
Changed in git-ubuntu:
status: New → Triaged
importance: Undecided → Medium
Robie Basak (racb)
Changed in git-ubuntu:
status: Triaged → In Progress
assignee: nobody → Robie Basak (racb)
Revision history for this message
Steve Langasek (vorlon) wrote :

My understanding is that this is now resolved.

$ git-ubuntu clone unbound
remote: Enumerating objects: 14805, done.
remote: Counting objects: 100% (14805/14805), done.
remote: Compressing objects: 100% (4952/4952), done.
remote: Total 14805 (delta 10696), reused 13392 (delta 9606)
Receiving objects: 100% (14805/14805), 27.59 MiB | 4.56 MiB/s, done.
Resolving deltas: 100% (10696/10696), done.
From https://git.launchpad.net/ubuntu/+source/unbound
[...]
 * [new branch] ubuntu/devel -> vorlon/ubuntu/devel
$ cd unbound/
$ git pull
Already up to date.
$

As of git-ubuntu 1.1-32-g8d21849

Changed in git-ubuntu:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.