git checkout -b tpristine || git checkout tpristine
git reset --hard $APP-$PRIOR
-DATE=`git show HEAD --format="format:%cd" | head -n1`
+DATE=`git show tmaster --format="format:%cd" | head -n1`
export GIT_AUTHOR_DATE="$DATE"
export GIT_COMMITTER_DATE="$DATE"
git checkout -b tpristine
git reset --hard 1.0
-Find the committer time associated with the ``tmaster`` commit using ``git show tmaster``
-and note it somewhere (we will refer to it in the environment variable
-``$DATE``.)
+Find the committer date associated with the ``tmaster`` commit using ``git show tmaster``
+and note it somewhere::
+
+ DATE=`git show tmaster --format="format:%cd" | head -n1`
Next, begin performing ordinary procedure for preparing the
pristine copy. There are two caveats: you will need to use ``--force``
manually restore any custom changes we may have made, then amend your commit and
push back::
- git commit --amend -a
+ # you probably lost your environment variable
+ DATE=`git show HEAD --format="format:%cd" | head -n1`
+ env GIT_AUTHOR_DATE="$DATE" GIT_COMMITTER_DATE="$DATE" git commit --amend -a
git tag -d $APP-$VERSION-scripts
git tag $APP-$VERSION-scripts
git push --force