Skip to content

Installing from a git repo using +e doesn't checkout the default (master) branch #23

@vbabiy

Description

@vbabiy

I've seen this issue elsewhere, with regards to virtualenv (http://groups.google.com/group/python-virtualenv/browse_thread/thread/afd8d06d69a0f3be), but it's looking like a pip issue to me.

Basically if I install an editable package from git using pip, and then go to environment/src/foo/ and type 'git branch', I get the following output:

* (no branch)
  master

using a standard git clone correctly yields the following output (which means the repositories aren't at fault):

* master

This happens when checking out from anywhere (github, local repos, remotes etc). This is particularly troublesome if you don't realise it's happened and then try to make some changes and commit/push since it causes errors.

I'm not sure what's happening since from a quick glance at the code, pip is just running git clone.


Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automationtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions