Skip to content

Mani init fails when CWD is a git repository #78

@mrjk

Description

@mrjk
  • I have the latest version of mani
  • I have searched through the existing issues

Info

  • OS

    • Linux
    • Mac OS X
    • Windows
    • other
  • Shell

    • Bash
    • Zsh
    • Fish
    • Powershell
    • other
  • Version:
Version: 0.23.0    
Commit: 83b2ffb   
Date: 2022-12-31T11:24:08Z

Problem / Steps to reproduce

Let's assume test_dir is a dir with a lots of git repos. Let's assume we want test_dir to be a git repository itself, with a nice README.md explaining how to checkout included repos:

cd test_dir
git init .
mani init
error: exit status 1

You can't init many, it returns an error.

Workaround: Move temporarly the .git folder to TMP_GIT, do the mani init and rename TMP_GIT to .git again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions