Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > b2ab6f283eaa892aaab5e8eca111013a > files > 362

git-1.7.4.4-1.fc14.x86_64.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