[oe-commits] [openembedded-core] 04/11: create-pull-request: remove output directory

git at git.openembedded.org git at git.openembedded.org
Wed Sep 14 21:42:44 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 8535784ba84060e0e7ca05e7771a58f9c70c69b9
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Wed Sep 14 15:02:04 2016 +0300

    create-pull-request: remove output directory
    
    When 'git request-pull' fails it makes sense to remove output
    directory. Otherwise create-pull-request will complain that
    output directory already exists on the next run.
    
    Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/create-pull-request | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/create-pull-request b/scripts/create-pull-request
index 3f30cf1..a88f35a 100755
--- a/scripts/create-pull-request
+++ b/scripts/create-pull-request
@@ -229,6 +229,7 @@ else
 fi
 if [ $? -ne 0 ]; then
 	echo "ERROR: git request-pull reported an error"
+	rm -rf $ODIR
 	exit 1
 fi
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list