Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 384
    • Issues 384
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGitTortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #3539
Closed
Open
Issue created Mar 10, 2020 by Flavio Stanchina@fstanchina

doesn't abort commit if user doesn't modify the template commit message

What steps will reproduce the problem?

  1. set a template commit message
  2. try doing a commit
  3. click "Commit" without modifying the message

What is the expected output? What do you see instead?

The commit should be aborted, or a confirmation message to the tune of "You didn't edit the commit message. Proceed anyway?" should appear.

What version of TortoiseGit and Git are you using? On what operating system?

  • TortoiseGit 2.10.0.0 (C:\Program Files\TortoiseGit\bin)
  • git version 2.20.1.windows.1
  • Windows 7 x64

Please provide any additional information below.

Here's what happens at the command line:

> git config commit.template C:\Users\user\commitmsg.txt

> vim hello.txt

> git commit hello.txt
(Vim opens, I don't modify the template, exit Vim and...)
Aborting commit; you did not edit the message.

That's similar to what Git does when you enter an empty commit message:

> git commit hello.txt
(Vim opens, I erase everything, exit Vim and...)
Aborting commit due to empty commit message.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking