Skip to content

safe.directory '*' is not accepted #1293

Closed
@laktak

Description

@laktak

Describe the bug

git works on mounted directories if you use

git config --global --add safe.directory '*'

But gitui will throw an error:

invalid path
please run gitui inside of a non-bare git repository

I can work around the issue by using

git config --global --add safe.directory /mnt/...

but I have to do this for every directory.

To Reproduce
Steps to reproduce the behavior:

  • run git config --global --add safe.directory '*'
  • go to a mounted directory
  • run git clone https://github.com/extrawurst/gitui
  • cd into gitui and run git status # this will work
  • run gitui # this will give an error

Expected behavior
gitui should use the same options as git (if this is a problem of a dependency please let me know so I can report it there)

Context (please complete the following information):

  • arch
  • gitui 0.20.1 (from arch repos)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededupstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions