madt_clone: on "directory already exists", report whether it's the same repo or a different one #350
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#350
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When
madt_clonehits an existing target directory it stops with a bare "directory already exists". That leaves me to work out by hand whether the directory is a stale clone of the repo I actually asked for (safe to reuse) or an unrelated project that happens to share the name (a real collision I have to rename around).The refusal already has what it needs to answer that - it can read the existing directory's
originremote and compare it against the repo being cloned.Proposed behaviour when the target directory already exists:
--directoryTurns a bare stop into a one-line diagnosis. Small quality-of-life thing, but it bit me today.