https://github.com/git/git
Raw File
Tip revision: d2446dfd7f3b3f8948142cfb07a0270e2497d93f authored by Junio C Hamano on 27 November 2013, 20:14:45 UTC
Git 1.8.5
Tip revision: d2446df
list
#!/bin/sh

print_if_bare_repo='
	if "$(git --git-dir="$1" rev-parse --is-bare-repository)" = true
	then
		printf "%s\n" "${1#./}"
	fi
'

find -type d -name "*.git" -exec sh -c "$print_if_bare_repo" -- \{} \; -prune 2>/dev/null
back to top