mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 15:02:54 +00:00
parent
4368176ab1
commit
fcf1244046
1 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ umask 0002
|
||||||
# Figure out the environment we're running in
|
# Figure out the environment we're running in
|
||||||
eval "$(crudini --format=sh --get /etc/dist-git/dist-git.conf dist-git)"
|
eval "$(crudini --format=sh --get /etc/dist-git/dist-git.conf dist-git)"
|
||||||
REPODIR=$gitroot_dir
|
REPODIR=$gitroot_dir
|
||||||
DEFAULT_MAIN=$default_branch
|
DEFAULT_BRANCH=$default_branch
|
||||||
: ${git_author_name="Undefined"}
|
: ${git_author_name="Undefined"}
|
||||||
: ${git_author_email="undefined@example.com"}
|
: ${git_author_email="undefined@example.com"}
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ fi
|
||||||
|
|
||||||
# Sanity checks before we start doing damage
|
# Sanity checks before we start doing damage
|
||||||
[ $VERBOSE -gt 1 ] && echo "Checking package $PACKAGE..."
|
[ $VERBOSE -gt 1 ] && echo "Checking package $PACKAGE..."
|
||||||
if [ -f $REPODIR/$PACKAGE.git/refs/heads/$DEFAULT_MAIN ] ; then
|
if [ -f $REPODIR/$PACKAGE.git/refs/heads/$DEFAULT_BRANCH ] ; then
|
||||||
echo "ERROR: Package module $PACKAGE already exists!" >&2
|
echo "ERROR: Package module $PACKAGE already exists!" >&2
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
|
@ -107,7 +107,7 @@ git config user.email "$git_author_email"
|
||||||
git add .
|
git add .
|
||||||
git commit -q -m 'Initial setup of the repo'
|
git commit -q -m 'Initial setup of the repo'
|
||||||
git remote add origin $REPODIR/$PACKAGE.git
|
git remote add origin $REPODIR/$PACKAGE.git
|
||||||
git push -q origin "$DEFAULT_MAIN"
|
git push -q origin "$DEFAULT_BRANCH"
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
|
|
||||||
# Place the gitolite update hook in place since we're not using our own
|
# Place the gitolite update hook in place since we're not using our own
|
||||||
|
|
Loading…
Add table
Reference in a new issue