uscan: use git upstream remote when available in git mode

I found it stupid to clone upstream repository to a tmp repository when "git-buildpackage" is used with one of --git-upstream* options and mode=git.

This MR checks if upstream link exists using git remote --verbose show, then use it instead of cloning elsewhere; otherwise it falls back to previous behavior.

Closes: #910777

Edited by Yadd

Merge request reports

Loading