git-ubuntu clone should setup remote-tracking branches

Bug #1995489 reported by Paride Legovini
This bug affects 1 person
Affects Status Importance Assigned to Milestone
In Progress
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)
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.