nfdi4plants / ARCCommander

Tool to manage your ARCs
MIT License
11 stars 9 forks source link

[BUG]arc init fails creation of git repository #224

Closed cmohl2013 closed 8 months ago

cmohl2013 commented 9 months ago

Describe the bug I initialize an ARC with arc init in a newly created directory. arc init fails to create a git repository.

To Reproduce

mkdir my_arc
cd my_arc
git --version
git version 2.25.1
git lfs --version
git-lfs/3.4.0 (GitHub; linux amd64; go 1.20.6; git d06d6e9e)
arc init
Start processing command with the arguments:
    Branch:Field ""
    EditorPath:Field ""
    GitLFSByteThreshold:Field ""
    Owner:Field ""
    RepositoryAddress:Field ""

Start Arc Init 
ERROR: GIT: error: unknown switch `b' 
GIT: usage: git init [-q | --quiet] [--bare] [--template=<template-directory>] [--shared[=<permissions>]] [<directory>] 
GIT:  
GIT:     --template <template-directory> 
GIT:                           directory from which templates will be used 
GIT:     --bare                create a bare repository 
GIT:     --shared[=<permissions>] 
GIT:                           specify that the git repository is to be shared amongst several users 
GIT:     -q, --quiet           be quiet 
GIT:     --separate-git-dir <gitdir> 
GIT:                           separate git dir from working tree 
GIT:  
Done processing command. 

Expected behavior Git repository is created, no error message.

OS and framework information (please complete the following information):

Additional context

HLWeil commented 9 months ago

Hey @cmohl2013, thank you for the feedback!

If I remember correctly, we had similar issues before. This is most definitely a problem of the git version. Can you update your git installation and try again?

cmohl2013 commented 8 months ago

Thank you @HLWeil. I updated git to 2.42, now it works.

HLWeil commented 8 months ago

Glad to hear it!

I opened an Issue in the Knowledgebase so this information will also find its way there.