[MacPorts] #38902: Write a pre-commit hook to prevent expanded keywords from being committed
MacPorts
noreply at macports.org
Tue Apr 23 20:01:16 PDT 2013
#38902: Write a pre-commit hook to prevent expanded keywords from being committed
-----------------------------+-------------------------
Reporter: ryandesign@… | Owner: wsiegrist@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: server/hosting | Version:
Resolution: | Keywords:
Port: |
-----------------------------+-------------------------
Comment (by ecronin@…):
It doesn't do keyword expansion in git. It just doesn't screw things up
when they're pushed back to svn which is what this ticket is trying to
prevent.
{{{
% which git
/opt/local/bin/git
% git svn proplist Portfile
Properties on 'Portfile':
svn:entry:committed-date
svn:entry:committed-rev
svn:entry:last-author
svn:entry:uuid
svn:eol-style
svn:keywords
svn:wc:ra_dav:version-url
% git svn propget svn:keywords Portfile
Id
% head -1 Portfile
# $Id$
}}}
If I look at this Portfile in trac from svn the Id line is fully expanded.
I checked my global .gitconfig and my macports/.git directory and I don't
see that I did any extra customization to get this behavior, but I made
this checkout long ago and I don't have time to go digging at the moment.
But the link in comment:7 doesn't apply here because the authoritative
repo is svn not git. In git-land there is still no keyword substitution
happening, and any attempts at faking it using client hooks on commit like
suggested there would just break things when it was pushed back into svn.
--
Ticket URL: <https://trac.macports.org/ticket/38902#comment:10>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list