ports -u: Fix when using git

Ticket:	[d3106b99]