Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8337041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:10:29+00:00 2026-06-09T04:10:29+00:00

If I do this: pip install -e git://github.com/nimbis/django.git#egg=Django-dev Then pip will grab the default

  • 0

If I do this:

pip install -e git://github.com/nimbis/django.git#egg=Django-dev

Then pip will grab the default branch from that repository (1.4.1-patched) and install it, as you can see in the src directory where it’s installed:

cd ~/.virtualenvs/nimbis/src/django
[(1.4.1-patched) ~/.virtualenvs/nimbis/src/django]
$ git log | head -n4
commit a5d7c7b3a2d6a729bf5ede2254b5c75be9da94d7
Author: Lorin Hochstein <...>
Date:   Mon Jul 30 21:44:20 2012 -0400

If I do it again, the HEAD becomes the same as the remote master branch, although it still uses 1.4.1-patched (default branch) as the branch name.

$ pip install -e git://github.com/nimbis/django.git#egg=Django-dev
[(1.4.1-patched) lorin@nibbler ~/.virtualenvs/nimbis/src/django]
$ git log | head -n4
commit e567f439bdfc60e16c465220fdaa8ea8a0fae936
Merge: c0748a6 226a3e7
Author: Alex Gaynor <...>
Date:   Sun Jul 29 17:07:55 2012 -0700

I can resolve the problem by explicitly specifying the branch I want, but why does pip do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:10:31+00:00Added an answer on June 9, 2026 at 4:10 am

    PIP VersionControl object (pip.vcs.VersionControl) checks in check_destination if the destination path already exists. If so, it calls update method instead of obtain. Update hard resets the branch per default.

    You can see the exact behaviour in the VersionControl class referenced above and in pip.vcs.git.

    EDIT: Misread the code a bit. Obtain is called every time, but if the repository already exists at the destination, update if called instead of clone. Since rev_options defaults to “origin/master”, update resets to this branch.

    This very well may be a bug!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After installing some package with pip from vcs like this pip install git+https://github.com/kennethreitz/requests.git@355b97165c#requests how
I installed and configured a Django/MongoDB like this way ! pip install virtualenv source
So I have installed Django on my FreeBSD 8.2 box like this: pip install
When I install bcfg2 - http://bcfg2.org using pip install git+git://git.mcs.anl.gov/bcfg2.git#egg=Bcfg2 or pip install bcfg2
I installed Django Celery bur running pip install django-celery . This installed celery and
$ pip install Plone installed a lot of packages but then aborted with this
I've created an environment and added a package django-paramfield via git: $ pip install
OS X, Python 2.7, a fresh virtualenv: virtualenv bar source bar/bin/activate pip install django
I'm trying to install PyQt package with pip, but I get this error: ~$
Getting this error when running pip install -U selenium . Mid way through the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.