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 382
    • Issues 382
    • 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
  • #962
Closed
Open
Issue created Aug 02, 2015 by Sven Strickroth@mrtuxOwner

git_init in gitdll.c uses USERPROFILE for creating home.

By claus.stovga... on November 15, 2011 01:02 (imported from Google Code)


What steps will reproduce the problem?

  1. Install tortoise git on a Windows 7 on domain without $HOME
  2. Right click and check settings. Export variabeles.

It gives $HOME the same as USERPROFILE. Instead of HOMEDRIVE / HOMEPATH.

From git_init in gitdll.c - Line 104

// set HOME if not set already  
getenv_s(&homesize, NULL, 0, "HOME");  
if (!homesize)  
{  
	_dupenv_s(&home,&size,"USERPROFILE");  
	_putenv_s("HOME",home);  
	free(home);  
}  

Notice it uses the USERPROFILE.

The problem is the same as issue #922 (closed). (I guess git_init was forgotten)

It should be an easy fix.

Thanks Ahead

Claus Stovgaard

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking