X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/cce0d243e003bcbc741955b6b4282fcf07c24a04..5a5c5478ebd0c79622e6c68ecd32f04ec150ef9c:/mrconfig.git-fake-bare diff --git a/mrconfig.git-fake-bare b/mrconfig.git-fake-bare index 57849cf..5ae396c 100644 --- a/mrconfig.git-fake-bare +++ b/mrconfig.git-fake-bare @@ -8,6 +8,11 @@ # section of your ~/.mrconfig #include = cat /path/to/mrconfig.git-fake-bare +# And an example repo using it would look something like: +#[.dotfiles] +#lib = git_fake_bare_worktree $HOME +#checkout = git_fake_bare_checkout git://... .dotfiles + lib = # called to tell git where the worktree is git_fake_bare_worktree() { @@ -16,7 +21,6 @@ lib = # git doesn't have an easy way to check out such a repo, so # do it by hand git_fake_bare_checkout() { - set -x url="$1" repo="$2" GIT_WORK_TREE= git clone --no-checkout "$url" "$repo"