Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
+commonmark
[git.ikiwiki.info.git]
/
ikiwiki-makerepo
diff --git
a/ikiwiki-makerepo
b/ikiwiki-makerepo
index aca8da1531c5a51bc594495a15b1f59ad7bc1e55..f1c44067ec77648b84d3ed954c61e5560a003f6f 100755
(executable)
--- a/
ikiwiki-makerepo
+++ b/
ikiwiki-makerepo
@@
-6,7
+6,7
@@
srcdir="$2"
repository="$3"
usage () {
repository="$3"
usage () {
- echo "usage: ikiwiki-makerepo
cvs|svn|git|monotone|darc
s srcdir repository" >&2
+ echo "usage: ikiwiki-makerepo
svn|git|svn|monotone|darcs|cv
s srcdir repository" >&2
echo " ikiwiki-makerepo bzr|mercurial srcdir" >&2
exit 1
}
echo " ikiwiki-makerepo bzr|mercurial srcdir" >&2
exit 1
}
@@
-85,8
+85,13
@@
git)
cd "$srcdir"
git init
cd "$srcdir"
git init
+ if [ -z "$(git config user.name)" ]; then
+ git config user.name IkiWiki
+ fi
+ if [ -z "$(git config user.email)" ]; then
+ git config user.email ikiwiki.info
+ fi
echo /.ikiwiki > .gitignore
echo /.ikiwiki > .gitignore
- echo /recentchanges >> .gitignore
git add .
git commit -m "initial commit"
git remote add origin "$repository"
git add .
git commit -m "initial commit"
git remote add origin "$repository"