Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

generate-git-snapshot: make sure to revert to original debian/changel…

…og to avoid merge conflicts

Thanks to Raphaël Hertzog for spotting the issue
when investigating build errors in dpkg's Jenkins job.

JFTR:

| jenkins@grml-jenkins:~/jobs/dpkg-source/workspace/source$ git pull
| Updating fb18783..91495b8
| error: Your local changes to 'debian/changelog' would be overwritten by merge.  Aborting.
| Please, commit your changes or stash them before you can merge.
| jenkins@grml-jenkins:~/jobs/dpkg-source/workspace/source$
commit c7edd530b5386f313a50aa4251d6c03ca89c732f 1 parent 772ff4c
@mika authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  scripts/generate-git-snapshot
View
3  scripts/generate-git-snapshot
@@ -123,6 +123,9 @@ if ! git-buildpackage -tc --git-ignore-new -S -us -uc ; then
dpkg-source -b source
fi
+# revert to original debian/changelog to avoid merge conflicts
+( cd source/ ; git checkout -- debian/changelog )
+
# needed for deploying artifacts
mkdir -p ${JENKINS_HOME}/userContent/${JOB_NAME}/
Please sign in to comment.
Something went wrong with that request. Please try again.