Skip to content

Instantly share code, notes, and snippets.

@EliahKagan
Created September 14, 2023 08:44
Show Gist options
  • Save EliahKagan/25ac58dd7ed5b952c20529acea1a2fe1 to your computer and use it in GitHub Desktop.
Save EliahKagan/25ac58dd7ed5b952c20529acea1a2fe1 to your computer and use it in GitHub Desktop.
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-next=)$ ./check-version.sh
Checking current directory.
Checking that VERSION and doc/source/changes.rst exist and have no committed changes.
Checking that ALL changes are committed.
Gathering current version, latest tag, and current HEAD commit info.
VERSION file = 3.1.36
changes.rst = 3.1.36
Latest tag = 3.1.36.1
HEAD SHA = 6495d84142b60ba81a5b4268a0dfc0785c22d60a
Latest tag SHA = aabc5fec0834efb567007c2780c21d3cf1f2bdb1
./check-version.sh: Check failed. Stopping.
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-next=)$ git tag -d 3.1.36.1
Deleted tag '3.1.36.1' (was aabc5fec)
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-next=)$ ls
AUTHORS MANIFEST.in check-version.sh pyproject.toml test
CHANGES Makefile doc release-verification-key.asc test-requirements.txt
CONTRIBUTING.md README.md etc requirements-dev.txt
GitPython.egg-info SECURITY.md git requirements.txt
LICENSE VERSION init-tests-after-clone.sh setup.py
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-next=)$ ./check-version.sh
Checking current directory.
Checking that VERSION and doc/source/changes.rst exist and have no committed changes.
Checking that ALL changes are committed.
Gathering current version, latest tag, and current HEAD commit info.
VERSION file = 3.1.36
changes.rst = 3.1.36
Latest tag = 3.1.36
HEAD SHA = 6495d84142b60ba81a5b4268a0dfc0785c22d60a
Latest tag SHA = 5297f6210f185c9df9c97392ffef4da8562b58ff
./check-version.sh: Check failed. Stopping.
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-next=)$ vim VERSION
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-next *=)$ ./check-version.sh
Checking current directory.
Checking that VERSION and doc/source/changes.rst exist and have no committed changes.
M VERSION
./check-version.sh: Check failed. Stopping.
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-next *=)$ git add .
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-next +=)$ ./check-version.sh
Checking current directory.
Checking that VERSION and doc/source/changes.rst exist and have no committed changes.
M VERSION
./check-version.sh: Check failed. Stopping.
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-next +=)$ git switch -c portable-makefile-test
Switched to a new branch 'portable-makefile-test'
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test +)$ git commit -m 'test commit: update VERSION'
[portable-makefile-test c5853f05] test commit: update VERSION
1 file changed, 1 insertion(+), 1 deletion(-)
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test)$ ./check-version.sh
Checking current directory.
Checking that VERSION and doc/source/changes.rst exist and have no committed changes.
Checking that ALL changes are committed.
Gathering current version, latest tag, and current HEAD commit info.
VERSION file = 3.1.36.1
changes.rst = 3.1.36
Latest tag = 3.1.36
HEAD SHA = c5853f05402c9e52209b446b05286c3c3bcd8237
Latest tag SHA = 5297f6210f185c9df9c97392ffef4da8562b58ff
./check-version.sh: Check failed. Stopping.
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test)$ git tag 3.1.36.1
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test)$ ./check-version.sh
Checking current directory.
Checking that VERSION and doc/source/changes.rst exist and have no committed changes.
Checking that ALL changes are committed.
Gathering current version, latest tag, and current HEAD commit info.
VERSION file = 3.1.36.1
changes.rst = 3.1.36
Latest tag = 3.1.36.1
HEAD SHA = c5853f05402c9e52209b446b05286c3c3bcd8237
Latest tag SHA = c5853f05402c9e52209b446b05286c3c3bcd8237
./check-version.sh: Check failed. Stopping.
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test)$ vim changes.rst
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test)$ vim doc/source/changes.rst # (Correct path, sorry.)
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test *)$ ./check-version.sh
Checking current directory.
Checking that VERSION and doc/source/changes.rst exist and have no committed changes.
M doc/source/changes.rst
./check-version.sh: Check failed. Stopping.
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test *)$ git add .
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test +)$ ./check-version.sh
Checking current directory.
Checking that VERSION and doc/source/changes.rst exist and have no committed changes.
M doc/source/changes.rst
./check-version.sh: Check failed. Stopping.
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test +)$ git commit -m 'test commit: add to changes.rst'
[portable-makefile-test d70c5201] test commit: add to changes.rst
1 file changed, 5 insertions(+)
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test)$ ./check-version.sh
Checking current directory.
Checking that VERSION and doc/source/changes.rst exist and have no committed changes.
Checking that ALL changes are committed.
Gathering current version, latest tag, and current HEAD commit info.
VERSION file = 3.1.36.1
changes.rst = 3.1.36.1
Latest tag = 3.1.36.1
HEAD SHA = d70c52019274c9163127cd9862608d94ec5f0318
Latest tag SHA = c5853f05402c9e52209b446b05286c3c3bcd8237
./check-version.sh: Check failed. Stopping.
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test)$ git tag -d 3.1.36.1
Deleted tag '3.1.36.1' (was c5853f05)
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test)$ ./check-version.sh
Checking current directory.
Checking that VERSION and doc/source/changes.rst exist and have no committed changes.
Checking that ALL changes are committed.
Gathering current version, latest tag, and current HEAD commit info.
VERSION file = 3.1.36.1
changes.rst = 3.1.36.1
Latest tag = 3.1.36
HEAD SHA = d70c52019274c9163127cd9862608d94ec5f0318
Latest tag SHA = 5297f6210f185c9df9c97392ffef4da8562b58ff
./check-version.sh: Check failed. Stopping.
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test)$ git tag 3.1.36.1
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test)$ ./check-version.sh
Checking current directory.
Checking that VERSION and doc/source/changes.rst exist and have no committed changes.
Checking that ALL changes are committed.
Gathering current version, latest tag, and current HEAD commit info.
VERSION file = 3.1.36.1
changes.rst = 3.1.36.1
Latest tag = 3.1.36.1
HEAD SHA = d70c52019274c9163127cd9862608d94ec5f0318
Latest tag SHA = d70c52019274c9163127cd9862608d94ec5f0318
OK, everything looks good.
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test)$ echo "$?"
0
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test)$ git tag -d 3.1.36.1
Deleted tag '3.1.36.1' (was d70c5201)
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test)$ ./check-version.sh
Checking current directory.
Checking that VERSION and doc/source/changes.rst exist and have no committed changes.
Checking that ALL changes are committed.
Gathering current version, latest tag, and current HEAD commit info.
VERSION file = 3.1.36.1
changes.rst = 3.1.36.1
Latest tag = 3.1.36
HEAD SHA = d70c52019274c9163127cd9862608d94ec5f0318
Latest tag SHA = 5297f6210f185c9df9c97392ffef4da8562b58ff
./check-version.sh: Check failed. Stopping.
(.venv) ek@Glub:~/repos-wsl/GitPython (portable-makefile-test)$ echo "$?"
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment