From: Johannes Berg Date: Thu, 4 Apr 2013 19:56:05 +0000 (+0200) Subject: git tracker: don't chdir, remove verbose argument X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c5918122192e4a4e8accb15003321ca681ba61a8;p=openwrt%2Fstaging%2Fblogic.git git tracker: don't chdir, remove verbose argument Signed-off-by: Johannes Berg --- diff --git a/devel/git-tracker.py b/devel/git-tracker.py index 3d7ab26e665d..8ee26e6ce8bd 100755 --- a/devel/git-tracker.py +++ b/devel/git-tracker.py @@ -93,17 +93,13 @@ def handle_commit(args, msg, branch, treename, kernelobjdir, tmpdir, wgitdir, ba return failure if __name__ == '__main__': - os.chdir(source_dir) - parser = argparse.ArgumentParser(description='backport git tracker') parser.add_argument('--config', metavar='', type=str, - default='git-tracker.ini', + default=os.path.join(source_dir, 'devel', 'git-tracker.ini'), help='Configuration file for the tracker') parser.add_argument('--copy-list', metavar='', type=str, - default='copy-list', + default=os.path.join(source_dir, 'copy-list'), help='File containing list of files/directories to copy') - parser.add_argument('--verbose', const=True, default=False, action="store_const", - help='Print more verbose information') args = parser.parse_args() # Load configuration