Skip to content

gix fails to recognize bare repos that have an index file as bare if they are not named <repo>.git #980

@eatradish

Description

@eatradish

Current behavior 😯

My step:

gix clone --bare https://github.com/AOSC-Dev/oma oma-bare
mkdir oma-not-bare
cd oma-not-bare
git init
git --git-dir ../oma-bare --work-tree . checkout -f e8f56b5
cd ../oma-bare
gix fetch origin +refs/heads/*:refs/heads/*

gix return error:

Error: './.git/objects' wasn't a directory

Expected behavior 🤔

git success to run:

$ git fetch origin +refs/heads/*:refs/heads/*
from https://github.com/AOSC-Dev/oma
 * [new branch]          cratify-oma -> cratify-oma
$ echo $?
0

Steps to reproduce 🕹

No response

Metadata

Metadata

Assignees

Labels

acknowledgedan issue is accepted as shortcoming to be fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions