Skip to content

Commit 48a17c8

Browse files
committed
-#######->WARNING<-####### Directory structure changed, see commit message
If you use git-python as a submodule of your own project, which alters the sys.path to import it, you will have to adjust your code to take the changed directory structure into consideration. Previously, you would put the path ./git-python/lib into your syspath. All modules moved two levels up, which means that the 'git-python' directory now is a package itself. This implies that the submodule's path must change so that the root directory is called 'git'. Your code must now put the directory containing the submodule into the sys.path. For example, if you previously would have the following configuration: ./ext/git-python/lib/git/__init__.py you would now change your submodule path to the following: ./ext/git On the latets revision, the directory structure is changed so that the git/__init__.py file is at the following path: ./ext/git/__init__.py To be able to import git, you need to put ./ext into your sys.path.
2 parents 0b81337 + 6befb28 commit 48a17c8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+96
-90
lines changed

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "gitdb"]
2-
path = lib/git/ext/gitdb
3-
url = git://gitorious.org/git-python/gitdb.git
1+
[submodule "gitdb"]
2+
path = ext/gitdb
3+
url = git://gitorious.org/git-python/gitdb.git

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ include LICENSE
33
include CHANGES
44
include AUTHORS
55
include README
6+
7+
graft test/fixtures
File renamed without changes.

lib/git/cmd.py renamed to cmd.py

File renamed without changes.
File renamed without changes.

lib/git/db.py renamed to db.py

File renamed without changes.

lib/git/diff.py renamed to diff.py

File renamed without changes.

doc/source/changes.rst

Lines changed: 6 additions & 0 deletions

lib/git/exc.py renamed to exc.py

File renamed without changes.
Submodule gitdb updated from 0000000 to 1bc281d

0 commit comments

Comments
 (0)