add support for description
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
07ed7e9786
commit
21a4a988f8
1 changed files with 7 additions and 1 deletions
|
@ -18,13 +18,14 @@
|
||||||
# along with nsbin. If not, see <http://www.gnu.org/licenses/>.
|
# along with nsbin. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Usage: $0 repo pseudo-owner
|
# Usage: $0 repo desc pseudo-owner
|
||||||
#
|
#
|
||||||
|
|
||||||
basedir=/home/services/sans/git
|
basedir=/home/services/sans/git
|
||||||
group=sans
|
group=sans
|
||||||
|
|
||||||
repo="$1"; shift
|
repo="$1"; shift
|
||||||
|
desc="$1"; shift
|
||||||
powner="$1"; shift
|
powner="$1"; shift
|
||||||
|
|
||||||
export GIT_DIR="${basedir}/${repo}"
|
export GIT_DIR="${basedir}/${repo}"
|
||||||
|
@ -33,6 +34,11 @@ git init
|
||||||
|
|
||||||
# allow display via gitweb
|
# allow display via gitweb
|
||||||
touch "${GIT_DIR}/git-daemon-export-ok"
|
touch "${GIT_DIR}/git-daemon-export-ok"
|
||||||
|
|
||||||
|
# add description
|
||||||
|
echo "${desc}" > "${GIT_DIR}/description"
|
||||||
|
|
||||||
|
# make sure group rights are kept
|
||||||
cat << eof > "${GIT_DIR}/config"
|
cat << eof > "${GIT_DIR}/config"
|
||||||
[core]
|
[core]
|
||||||
filemode = true
|
filemode = true
|
||||||
|
|
Loading…
Reference in a new issue