Bug 195699 - making make update works for both git only setup and git+svn setup
Summary: making make update works for both git only setup and git+svn setup
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-05 02:06 UTC by clutton
Modified: 2016-04-13 11:29 UTC (History)
2 users (show)

See Also:


Attachments
/usr/port/Makefile (972 bytes, patch)
2014-12-05 02:06 UTC, clutton
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description clutton 2014-12-05 02:06:04 UTC
Created attachment 150215 [details]
/usr/port/Makefile

Currently make update from ports directory supports only git+svn scheme. The patch for this was added a long time ago. There weren't any git only servers.

Now there are some, and it would be nice to have «make update» which works accordingly.

Please test it before adding!!!

I've created this patch after reading some git docs, and it should work fine. As I understand the svn is some alien in git, and instead of doing full integration they keep it away somehow. So checking the .git/svn should be ok. But again, if you works with remotes different then origin this approach wouldn't work, something complicated needed then.

But again, it's better then nothing and for most set up it should be ok. And if there will be any blame I'll have a reason to do it more properly :)
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-04-13 11:29:37 UTC
A commit references this bug:

Author: mat
Date: Wed Apr 13 11:28:58 UTC 2016
New revision: 413203
URL: https://svnweb.freebsd.org/changeset/ports/413203

Log:
  Have make update work for a git only repository.

  PR:		195699
  Submitted by:	clutton zoho com
  Sponsored by:	Absolight

Changes:
  head/Makefile