mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
topdir.mk: Add git-config
Signed-off-by: Jan Lindemann <jan@jannet.de>
This commit is contained in:
parent
50d9375560
commit
dc31870a94
1 changed files with 10 additions and 3 deletions
|
|
@ -83,20 +83,27 @@ do-install-links:
|
||||||
}; \
|
}; \
|
||||||
done; \
|
done; \
|
||||||
|
|
||||||
git-init-from-cvs:
|
git-init:
|
||||||
@if [ -e .git ]; then \
|
@if [ -e .git ]; then \
|
||||||
echo $(TOPDIR)/.git exists, aborting ;\
|
echo $(TOPDIR)/.git exists, aborting ;\
|
||||||
exit 1 ;\
|
exit 1 ;\
|
||||||
fi
|
fi
|
||||||
git init
|
git init
|
||||||
|
make git-config
|
||||||
|
|
||||||
|
git-init-from-cvs: git-init
|
||||||
list-cvs-files.sh -f | xargs git add
|
list-cvs-files.sh -f | xargs git add
|
||||||
git commit -m "initial checkin of $(RPM_VERSION)"
|
git commit -m "initial checkin of $(RPM_VERSION)"
|
||||||
|
|
||||||
|
git-config:
|
||||||
|
git config --global user.name $(FULL_NAME)
|
||||||
|
git config --global user.email $(WHOAMI)@jannet.de
|
||||||
|
|
||||||
WHOAMI = $(shell whoami)
|
WHOAMI = $(shell whoami)
|
||||||
REMOTE_GIT_DIR = /srv/git/$(WHOAMI)/proj/$(PROJECT)
|
REMOTE_GIT_DIR = /srv/git/$(WHOAMI)/proj/$(PROJECT)
|
||||||
|
|
||||||
git-clone-to-remote:
|
git-clone-to-remote: git-config
|
||||||
ssh git.jannet.de "/opt/ytools/bin/git-srv-admin.sh -j create-personal-project $(PROJECT)"
|
#ssh git.jannet.de "/opt/ytools/bin/git-srv-admin.sh -j create-personal-project $(PROJECT)"
|
||||||
git remote add origin ssh://$(WHOAMI)@git.jannet.de$(REMOTE_GIT_DIR)
|
git remote add origin ssh://$(WHOAMI)@git.jannet.de$(REMOTE_GIT_DIR)
|
||||||
git config --global user.name $(FULL_NAME)
|
git config --global user.name $(FULL_NAME)
|
||||||
git config --global user.email $(WHOAMI)@jannet.de
|
git config --global user.email $(WHOAMI)@jannet.de
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue