Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 58abdd6cd89d53a2abdedf2832447349 > files > 475

git-1.8.1.4-2.fc18.i686.rpm

#!/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