Skip to content
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

pore doesn't work with safe.bareRepository=explicit #112

Open
rprichard opened this issue Feb 23, 2024 · 0 comments
Open

pore doesn't work with safe.bareRepository=explicit #112

rprichard opened this issue Feb 23, 2024 · 0 comments

Comments

@rprichard
Copy link
Contributor

Git recently added a new security feature (safe.bareRepository=explicit) that disables git's automatic detection of bare repositories. It breaks pore:

rprichard@rprichard:/x/aosp$ pore sync
[00:00:00] fetching       1/1 ########################################: 
platform/manifest: failed to fetch for project platform/manifest

Caused by:
    git fetch failed: fatal: cannot use bare repository '/home/rprichard/pore-data/android/objects/platform/manifest.git' (safe.bareRepository is 'explicit')
    
fatal: failed to sync

AFAIK the git project's default is still safe.bareRepository=all, but my computer has it set to explicit.

I think passing any of GIT_DIR, --git-dir, or --bare to git would fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant