topdir.mk: Make target git-import idempotent #129
Loading…
Reference in a new issue
No description provided.
Delete branch "jan/feature/20260928-topdir-mk-make-target-git-import-idempotent"
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?
topdir.mk: Make target git-import idempotent
Target git-import adds everything it finds in the current directory. If it's already a Git project, that fails over git commit -m
First commit. Since it's a prerequisite of target git-init-remote, it breaks that target, too for non-empty git repos, which isn't helpful when trying to run make git-init-remote to publish an an already existing project.So only do something meaningful in git-import if the project it's run in doesn't already contain files.