[MacPorts] #27485: make "port sync" git - aware

MacPorts noreply at macports.org
Sun Jan 9 10:30:57 PST 2011


#27485: make "port sync" git - aware
-----------------------------------+----------------------------------------
 Reporter:  andy@…                 |       Owner:  macports-tickets@…                   
     Type:  enhancement            |      Status:  new                                  
 Priority:  Normal                 |   Milestone:                                       
Component:  base                   |     Version:  1.9.2                                
 Keywords:  git, subversion, sync  |        Port:                                       
-----------------------------------+----------------------------------------

Comment(by ecronin@…):

 I just switched to a local git-svn repo and would like to see this too...

 Attaching a new patch that adds a couple more features:
   * checking for {{{$portdir/../.git}}} is brittle, a better check is to
 run {{{cd $portdir && git rev-parse --is-inside-work-tree 2>/dev/null
 >/dev/null}}} which doesn't depend on a particular layout of the
 repository
   * the 'update' command is different for raw git versus git-svn so check
 which type the working-dir is and use the right one

-- 
Ticket URL: <https://trac.macports.org/ticket/27485#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list