git tracker: don't chdir, remove verbose argument
authorJohannes Berg <johannes.berg@intel.com>
Thu, 4 Apr 2013 19:56:05 +0000 (21:56 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 4 Apr 2013 19:56:05 +0000 (21:56 +0200)
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
devel/git-tracker.py

index 3d7ab26e665d301aa200be365b080735febd66c6..8ee26e6ce8bdf65a273dd6d599d3b03f87d91efa 100755 (executable)
@@ -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='<config-file>', 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='<listfile>', 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