Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 395247
Collapse All | Expand All

(-)a/eclass/git-2.eclass (-1 / +2 lines)
Lines 344-349 git-2_update_repo() { Link Here
344
	if [[ ${EGIT_LOCAL_NONBARE} ]]; then
344
	if [[ ${EGIT_LOCAL_NONBARE} ]]; then
345
		# checkout master branch and drop all other local branches
345
		# checkout master branch and drop all other local branches
346
		git checkout ${EGIT_MASTER} || die "${FUNCNAME}: can't checkout master branch ${EGIT_MASTER}"
346
		git checkout ${EGIT_MASTER} || die "${FUNCNAME}: can't checkout master branch ${EGIT_MASTER}"
347
		git clean -d -f -x || die "${FUNCNAME}: failed to clean checkout dir"
348
347
		for x in $(git branch | grep -v "* ${EGIT_MASTER}" | tr '\n' ' '); do
349
		for x in $(git branch | grep -v "* ${EGIT_MASTER}" | tr '\n' ' '); do
348
			debug-print "${FUNCNAME}: git branch -D ${x}"
350
			debug-print "${FUNCNAME}: git branch -D ${x}"
349
			git branch -D ${x} > /dev/null
351
			git branch -D ${x} > /dev/null
350
- 

Return to bug 395247