Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No .bash_profile created automatically in Git for Windows 2.5.1 #341

Closed
calle2010 opened this issue Sep 1, 2015 · 4 comments
Closed

No .bash_profile created automatically in Git for Windows 2.5.1 #341

calle2010 opened this issue Sep 1, 2015 · 4 comments
Assignees

Comments

@calle2010
Copy link

Hi,

I installed Git-2.5.1-64-bit.exe as update over my existing msysGit 1.9.5 installation.

I had only a .bashrc, but Git 2.5.1 does not create a .bash_profile automatically as intended by git-for-windows/build-extra#71

No file /etc/profile.d/bash_profile.sh was created:

$ ls -al /etc/profile.d/
total 20
drwxr-xr-x 1 christian.schaefer DIR+Group(513)    0 Sep  1 09:28 ./
drwxr-xr-x 1 christian.schaefer DIR+Group(513)    0 Sep  1 09:28 ../
-rw-r--r-- 1 christian.schaefer DIR+Group(513)  234 Aug  5 18:50 aliases.sh
-rw-r--r-- 1 christian.schaefer DIR+Group(513)   94 Aug  5 18:50 env.sh
-rw-r--r-- 1 christian.schaefer DIR+Group(513) 1045 Aug  5 18:50 git-prompt.sh
-rw-r--r-- 1 christian.schaefer DIR+Group(513)  822 Apr 26 10:32 lang.sh
-rw-r--r-- 1 christian.schaefer DIR+Group(513)  699 Jun 18 06:37 perlbin.csh
-rw-r--r-- 1 christian.schaefer DIR+Group(513)  668 Jun 18 06:37 perlbin.sh

$ git --version
git version 2.5.1.windows.1

$ ls ~/.bash* ~/.profile
ls: cannot access /c/Users/christian.schaefer/.profile: No such file or directory
/c/Users/christian.schaefer/.bash_history  /c/Users/christian.schaefer/.bashrc*

Next I try to manually uninstall and install Git 2.5.1 again to see if this file will be created.

@calle2010
Copy link
Author

Manual uninstall done, verified that C:\Program Files\Git was completely removed.
New install (with conhost option, if that matters) done, but same result: File /etc/profile.d/bash_profile.sh is not created.

@calle2010
Copy link
Author

references #191

@dscho dscho self-assigned this Sep 1, 2015
@dscho
Copy link
Member

dscho commented Sep 1, 2015

D'oh. I forgot to package git-extra. Did that now, the next release will fix this bug.

@dscho dscho closed this as completed Sep 1, 2015
@calle2010
Copy link
Author

Thank you!

mjcheetham pushed a commit to mjcheetham/git that referenced this issue May 17, 2021
Scalar: clean up the authentication story
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants