Further testing release script.
authorJose A. Rivera <jarrpa@redhat.com>
Tue, 5 Jun 2012 22:35:51 +0000 (17:35 -0500)
committerJose A. Rivera <jarrpa@redhat.com>
Tue, 5 Jun 2012 22:35:51 +0000 (17:35 -0500)
scripts/git_do_release.py

index 05fb2f1a463ca215dd560fbda038d340861152da..89c768291632f5d1fe0cccca96c08dc5eecbfec6 100755 (executable)
@@ -5,7 +5,7 @@
 #
 # Copyright (C) 2012 Jose A. Rivera <jarrpa@redhat.com>
 #
-# $Date: 2012-06-05 17:30:54 -0500$
+# $Date: 2012-06-05 17:35:52 -0500$
 #
 # ---------------------------------------------------------------------------- #
 #
@@ -45,7 +45,7 @@ from ConfigParser import SafeConfigParser
 # Globals ----------------------------------------------------------------------
 #
 verstr   = '%(prog)s Pre-Alpha'
-idstr    = '$Id: git_do_release.py 2012-06-05 17:30:54 -0500 Jose A. Rivera$'
+idstr    = '$Id: git_do_release.py 2012-06-05 17:35:52 -0500 Jose A. Rivera$'
 copystr  = 'Copyright (C) 2012 Jose A. Rivera <jarrpa@redhat.com>'
 gplstr   = '  GNU General Public License, version 3'
 version  = '\n'.join([verstr, idstr[1:-1], copystr, gplstr])
@@ -299,12 +299,7 @@ def do_release( release=defaults['release'],
   if release is None:
     sys.exit( 'FATAL ERROR: Unable to detect release string. Please provide' + \
               ' one in a config file or on the command line.' )
-  status = git('status --porcelain').split('\n')
-  for line in status:
-    if not line:
-      status.pop(status.index(line))
-  if len(status):
-    git('add -A')
+  git('add -A')
 
   # Commit release changes to current branch.
   git('commit -a', interactive=True)