Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork940
Description
I have a git repo that i'm using in a pretty roundabout way. Basically i have arepo/master
directory which stores a bunch of folders that have content in them. Then i have somerepo/SECTION
folders. To identify where each piece of content goes, i symlink the directory to the section it belongs in. Callinggit add
on the symlink directly adds the symlink, and not the content of the linked directory. After initializing the repo with GitPython callingrepo.index.add('SECTION/DIR_SYMLINK')
results in all of the items from the folder being added as if DIR_SYMLINK were a folder, but does not add its folder. See git output below.
On branch masterChanges to be committed: (use "git reset HEAD <file>..." to unstage) new file: gal19/117a76a47d475c3e9866701d24302a45/image0000.jpg new file: gal19/117a76a47d475c3e9866701d24302a45/image0001.png ... new file: gal19/117a76a47d475c3e9866701d24302a45/image0035.jpg new file: gal19/117a76a47d475c3e9866701d24302a45/image0036.jpg new file: gal19/117a76a47d475c3e9866701d24302a45/index.html new file: gal19/117a76a47d475c3e9866701d24302a45/info.jsonUntracked files: (use "git add <file>..." to include in what will be committed) gal19/117a76a47d475c3e9866701d24302a45
After agit reset HEAD
andgit add gal19/117a76a47d475c3e9866701d24302a45
this is the git status:
On branch masterChanges to be committed: (use "git reset HEAD <file>..." to unstage) new file: gal19/117a76a47d475c3e9866701d24302a45