Skip to content

Instantly share code, notes, and snippets.

@agross
Created August 26, 2010 13:22
Show Gist options
  • Save agross/551372 to your computer and use it in GitHub Desktop.
Save agross/551372 to your computer and use it in GitHub Desktop.
@rem Apply patch from outside the repository directory
git apply ../0001-patch.patch
@rem Call build script
call build.cmd
set el=%errorlevel%
@rem Clean up
git reset --hard
git clean -d -f
@rem Notify Git about the outcome of the build script
exit /b %el%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment