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
|
||||
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue