Skip to content

feat: prevent cloning if gimmegit was run in a repo#28

Merged
dwilding merged 22 commits intomainfrom
status-report
Oct 28, 2025
Merged

feat: prevent cloning if gimmegit was run in a repo#28
dwilding merged 22 commits intomainfrom
status-report

Conversation

@dwilding
Copy link
Copy Markdown
Owner

@dwilding dwilding commented Oct 12, 2025

This PR makes gimmegit detect whether it's being run inside a Git repo:

  • If gimmegit <repo> is run inside a repo that was created by gimmegit, the output is:

    Warning: Ignoring 'some-repo' because the working directory is inside a gimmegit clone.
    The working directory is inside a gimmegit clone.
    
  • If gimmegit <repo> is run inside a repo that wasn't created by gimmegit, the output is:

    Error: The working directory is inside a repo.
    

There's a difference in output because this PR also lays the groundwork for #12. When that's implemented, it will be possible to run gimmegit inside a repo that was created by gimmegit - to show a status dashboard.

@dwilding dwilding linked an issue Oct 12, 2025 that may be closed by this pull request
@dwilding dwilding changed the title feat: show a dashboard when running gimmegit in a clone feat: prevent cloning if gimmegit was run in a repo Oct 27, 2025
@dwilding dwilding marked this pull request as ready for review October 28, 2025 13:52
@dwilding dwilding merged commit 6d19a21 into main Oct 28, 2025
2 checks passed
@dwilding dwilding deleted the status-report branch October 28, 2025 13:52
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

Successfully merging this pull request may close these issues.

1 participant