Changeset 782 in tailor


Ignore:
Timestamp:
09/01/05 09:12:36 (8 years ago)
Author:
Todd Mokros <tmokros@…>
Hash name:
20050901071236-4e4b6-84daae238df1df3033ce1232ee7b52199d270b63
Message:

Change ignore file created by Cogito target to .git/info/exclude

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/cg.py

    r777 r782  
    154154    def _prepareWorkingDirectory(self, source_repo): 
    155155        """ 
    156         Create the .gitignore. 
     156        Create the .git/info/exclude. 
    157157        """ 
    158158 
     
    161161        from dualwd import IGNORED_METADIRS 
    162162 
    163         # Create the .gitignore file, that contains an fnmatch per line 
    164         # with all known VCs metadirs to be skipped. 
    165         # .gitignore is per directory, and does not recurse. 
    166         # We could change to cogito specific .git/ignore or 
    167         # once/if upstream cogito is updated to use .git/info/exclude, 
    168         # use it instead of .gitignore 
    169         ignore = open(join(self.basedir, '.gitignore'), 'w') 
     163        # Create the .git/info/exclude file, that contains an 
     164        # fnmatch per line with metadirs to be skipped. 
     165        ignore = open(join(self.basedir, self.repository.METADIR, 
     166                           'info', 'exclude'), 'a') 
     167        ignore.write('\n') 
    170168        ignore.write('\n'.join(['%s' % md 
    171169                                for md in IGNORED_METADIRS])) 
Note: See TracChangeset for help on using the changeset viewer.