Changeset 5601b9c in rtems-source-builder


Ignore:
Timestamp:
Feb 4, 2014, 7:22:03 AM (6 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
53b918e
Parents:
7c30130
Message:

sb: Add submodule support to the git support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/git.py

    r7c30130 r5601b9c  
    9595        ec, output = self._run(['checkout', branch], check = True)
    9696
     97    def submodule(self, module):
     98        ec, output = self._run(['submodule', 'update', '--init', module], check = True)
     99
    97100    def status(self):
    98101        _status = {}
     
    110113                    elif l.startswith('# Untracked files:'):
    111114                        state = 'untracked'
     115                    elif l.startswith('# HEAD detached'):
     116                        state = 'detached'
    112117                    elif state != 'none' and l[0] == '#':
    113118                        if l.strip() != '#' and not l.startswith('#   ('):
Note: See TracChangeset for help on using the changeset viewer.