topdir.mk: Make target git-import idempotent #129
1 changed files with 6 additions and 3 deletions
|
|
@ -224,9 +224,12 @@ git-clone-to-remote:
|
||||||
make git-update-project-description
|
make git-update-project-description
|
||||||
|
|
||||||
git-import: git-init git-config
|
git-import: git-init git-config
|
||||||
git add -A
|
if ! git ls-files | grep -q .; then \
|
||||||
git status
|
set -ex ;\
|
||||||
git commit -am "First commit"
|
git add -A ;\
|
||||||
|
git status ;\
|
||||||
|
git commit -am "First commit" ;\
|
||||||
|
fi
|
||||||
|
|
||||||
git-init-remote: git-import git-clone-to-remote
|
git-init-remote: git-import git-clone-to-remote
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue