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 380
    • Issues 380
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • 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
  • #3184
Closed
Open
Issue created Mar 19, 2018 by Oliver Daum@ccHanibal

Commiting asks for user data although they are set via includeif

What steps will reproduce the problem?

  1. Edit your .gitconfig using conditional includes via includeif (https://git-scm.com/docs/git-config#_includes) like this
    [includeIf "gitdir:**/gitlab/**"]
      	path = .gitconfig-gitlab
    [includeIf "gitdir:**/CC/**"]
      	path = .gitconfig-codecentric
    Both files contain different user info like this
    [user]
        name = ccHanibal
        email = oliver.daum@codecentric.de
  2. Try to commit a repository that is located under the gitlab folder.

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

I expect to see the commit dialog. Instead I'm asked to set user name and email first.
image
When I click yes, the settings dialog appears and it already shows the username and email configuration that is included via includeif. image
Leaving the dialog with OK presents the first dialog again.

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

TortoiseGit 2.6.0.0
Git for windows 2.16.2.windows.1
Windows 7

Please provide any additional information below.

In TortoiseGit 2.5.0.0 it worked fine, so seems to be a regression in 2.6.0.0.

Edited Aug 07, 2019 by Yue Lin Ho
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking