diff --git a/make/topdir.mk b/make/topdir.mk index 564af8a3..f1bd44c4 100644 --- a/make/topdir.mk +++ b/make/topdir.mk @@ -224,9 +224,12 @@ git-clone-to-remote: make git-update-project-description git-import: git-init git-config - git add -A - git status - git commit -am "First commit" + if ! git ls-files | grep -q .; then \ + set -ex ;\ + git add -A ;\ + git status ;\ + git commit -am "First commit" ;\ + fi git-init-remote: git-import git-clone-to-remote