-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Ignore submodules running git status
#3918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore submodules running git status
#3918
Conversation
what are the untracked files being created in the submodule ? |
symfony-docs/_exts$ git status
HEAD detached at 6fea4b1
Untracked files:
(use "git add <file>..." to include in what will be committed)
sensio/__init__.pyc
sensio/sphinx/__init__.pyc
sensio/sphinx/configurationblock.pyc
sensio/sphinx/phpcode.pyc
sensio/sphinx/refinclude.pyc
nothing added to commit but untracked files present (use "git add" to track) |
a much better fix is to add the .pyc files to the gitignore of the extension repo, as these files should never be committed in it. The repo is at https://github.com/fabpot/sphinx-php |
Will do. |
Then we can close this one, thanks @clemens-tolboom for taking care of this! |
once the change is merged in sphinx-php, there will still be a need to update the submodule to the fixed version |
@stof Are you sure? The |
@xabbuh the |
if you want a comparison between git submodules and composer, $ cd _exts
$ git fetch
$ git checkout <newref>
$ cd ..
$ git add _exts
$ git commit -m 'Updating the vendor' |
That makes sense. Thanks for the great explanation @stof. |
and if you missed it, the PR is now merged in the extensions |
Awesome explanation. Thanks @stof |
This PR was merged into the 2.3 branch. Discussion ---------- update fabpot Sphinx extensions version | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | As described by @stof in #3918 this pull requests updates the Sphinx extensions to the version that ignores ``*.pyc`` files. Commits ------- 62b6185 update fabpot Sphinx extensions version
When doing
the directory
_exts
should not get listed.The patch is based on http://stackoverflow.com/questions/5127178/gitignore-files-added-inside-git-submodules ... ready that issue there is another option
dirty
.Not sure what's best so:
dirty
anduntracked