opensas/openshift — Issue #13: [bug] check out commands that return error, even if they work ok
Author: opensas
Created: 2012-01-26 14:52:19+00:00
State: open

git fetch origin
git push origin

#fetch remote
out, err = shellexecute( ['git', 'fetch', 'origin'], location=app_folder, msg="Fetching from origin...", debug=options.debug, output=True)
#git fetch returns an errors, even if it works ok!
#if err != '':
#	err.insert(0, "ERROR - error fetching from origin (%s) repo" % (openshift_app.repo))
#	error_message(err)

git push origin

out, err = shellexecute( ['git', 'push', 'origin'], location=app_folder, msg="Pushing changes to origin...", debug=options.debug)
#it works ok, but it reports an error...
#if err != '':
#	err.insert(0, "ERROR - error pushing changes to origin")
#	error_message(err)