remove duplicated git project checking
authorZhang Qiang <qiang.z.zhang@intel.com>
Mon, 13 Aug 2012 02:04:57 +0000 (10:04 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Mon, 13 Aug 2012 02:04:57 +0000 (10:04 +0800)
RpmGitRepository will check the git project structure, so we dont
need check once again.

gitbuildsys/cmd_export.py

index 856b41f..862d2a9 100644 (file)
@@ -72,9 +72,6 @@ def do(opts, args):
     if not os.path.exists("%s/packaging" % workdir):
         msger.error('No packaging directory, so there is nothing to export.')
 
-    if not os.path.isdir("%s/.git" % workdir):
-        msger.error('Not a git repository (%s), aborting' % workdir)
-
     # Only guess spec filename here, parse later when we have the correct
     # spec file at hand
     specfile = utils.guess_spec(workdir, opts.spec)