Title: Adding to the index of a bare repository. by moshevds · Pull Request #131 · gitpython-developers/GitPython · GitHub
Open Graph Title: Adding to the index of a bare repository. by moshevds · Pull Request #131 · gitpython-developers/GitPython
X Title: Adding to the index of a bare repository. by moshevds · Pull Request #131 · gitpython-developers/GitPython
Description: Using add() on the index of a bare repository is currently not possible. There seems to be no reason for this however, as the relevant code is implemented without touching the working tree directory at all. This pull request mostly moves the working tree specific code to separate methods. This way @git_working_dir is only used when actually needed, and this way add() works on bare repositories. One additional problem that might need some attention and/or fixing is the "rw_bare_repo._working_tree_dir = None" line in the test. I'm not exactly sure why GitPython still thinks there is a valid working directory after cloning to a bare copy.
Open Graph Description: Using add() on the index of a bare repository is currently not possible. There seems to be no reason for this however, as the relevant code is implemented without touching the working tree director...
X Description: Using add() on the index of a bare repository is currently not possible. There seems to be no reason for this however, as the relevant code is implemented without touching the working tree director...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/131
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f5a32c2c-7b5c-7124-577b-d45dd347d091 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D696:1CFBA2:64DBFA:8B63AA:6A63A299 |
| html-safe-nonce | a6d403aa5a355f84d93653c330b082bbc75bb6795b35bc4c255952ab2fb65980 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjk2OjFDRkJBMjo2NERCRkE6OEI2M0FBOjZBNjNBMjk5IiwidmlzaXRvcl9pZCI6IjgxNzgwNTgyODQyMjg2OTY1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 39833010669d80a7cc19324d8aadff6ba8e4d7b5cc3bad275b294dff367fbd61 |
| hovercard-subject-tag | pull_request:11153756 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/gitpython-developers/GitPython/pull/131/files |
| twitter:image | https://avatars.githubusercontent.com/u/1497288?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1497288?s=400&v=4 |
| og:image:alt | Using add() on the index of a bare repository is currently not possible. There seems to be no reason for this however, as the relevant code is implemented without touching the working tree director... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ca676e17c4da4532dc68541e9fc874034ae840c26b5f34da7f1c42d9a600659 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3a0a9f049e072eb8e5795dfddcefdba9e277501d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width