-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use --depth=1 when checking out git repositories
In most uses of pip's git backend, we don't need the full git history - only the target head/branch/tag. This change adds --depth=1 to git fetch and clone commands. NB: "Shallow" checkouts are not supported from arbitrary git commits, so this change removes the ability to install from git SHA1 commit IDs. Tags and branches continue to be supported. Fixes pypa#2432
- Loading branch information
Showing
5 changed files
with
21 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -180,11 +180,10 @@ Here are the supported forms:: | |
[-e] git+ssh://git.myproject.org/MyProject#egg=MyProject | ||
-e [email protected]:MyProject#egg=MyProject | ||
|
||
Passing branch names, a commit hash or a tag name is possible like so:: | ||
Passing branch names or a tag name is possible like so:: | ||
|
||
[-e] git://git.myproject.org/MyProject.git@master#egg=MyProject | ||
[-e] git://git.myproject.org/[email protected]#egg=MyProject | ||
[-e] git://git.myproject.org/MyProject.git@da39a3ee5e6b4b0d3255bfef95601890afd80709#egg=MyProject | ||
|
||
Mercurial | ||
~~~~~~~~~ | ||
|
@@ -506,5 +505,3 @@ Examples | |
:: | ||
|
||
$ pip install --pre SomePackage | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters