X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/a61d7e5b39a4e0e4b9e5c69ad847639d67d07c02..26ffc95f66633e04e63ddce54c6161c5ce80b6b7:/.zsh/func/gitpub diff --git a/.zsh/func/gitpub b/.zsh/func/gitpub deleted file mode 100755 index b047537..0000000 --- a/.zsh/func/gitpub +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -# -# func/gitpub -# -# a convenient way to publicise a Git repository -# -# Copyright © 2008–2009 martin f. krafft -# Released under the terms of the Artistic Licence 2.0 -# -# Source repository: git://git.madduck.net/etc/zsh.git -# - -local oldpwd gitdir dest description tmpdir -oldpwd="$PWD" -gitdir="$(git rev-parse --git-dir)" -dest="$1"; shift -description="$@" -tmpdir="$(mktemp -d ${0##*/}.XXXXXX)" -trap "rm -rf $PWD/$tmpdir" EXIT - -cp -lr "$gitdir" "$tmpdir/gitdir" - -builtin cd "$tmpdir/gitdir" - -chmod -R a+rX . - -git config core.bare true -git config core.sharedrepository 2 -git config receive.denyNonFastforwards true - -echo "$description" >| description - -cd "$oldpwd" - -scp -r "$tmpdir/gitdir" "$dest"