Have make update work for a git only repository.

PR:		195699
Submitted by:	clutton zoho com
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2016-04-13 11:28:57 +00:00
parent 4b37aa34e3
commit 4ad5e31e4e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=413203

View File

@ -184,10 +184,17 @@ update:
@echo "--------------------------------------------------------------"
cd ${.CURDIR}; ${SVN} update
.elif exists(${.CURDIR}/.git)
. if exists(${.CURDIR}/.git/svn)
@echo "--------------------------------------------------------------"
@echo ">>> Updating ${.CURDIR} from git+svn repository"
@echo "--------------------------------------------------------------"
cd ${.CURDIR}; ${GIT} svn rebase
. else
@echo "--------------------------------------------------------------"
@echo ">>> Updating ${.CURDIR} from git repository"
@echo "--------------------------------------------------------------"
cd ${.CURDIR}; ${GIT} pull
. endif
.elif defined(RSYNC_UPDATE) && defined(PORTS_RSYNC_SOURCE)
@echo "--------------------------------------------------------------"
@echo ">>> Updating with ${RSYNC} from ${PORTS_RSYNC_SOURCE}"