How do I set PATH for just the atlstash user on CentOS 7 for the right Git?

I want to use a source compiled git, the official 1.8.3 version is old and stale, but you need it for dev tools such as perl-Git and gettext-devel. If I have a newer version in /opt/git/2.1.2 can I just add

 PATH=/opt/git/2.1.2/bin:$PATH
 export PATH

In the ~/.bash_profile for the atlstash user? I want to make sure make sure the corrent git is loaded.

Thanks

aris.green

1 answer

0 vote

Setting it in the path should be sufficient. You can verify that Stash is picking up that version by looking at the logs. After startup, you should find something like this in your STASH_HOME/log/atlassian-stash.log:

2014-10-17 20:27:46,939 INFO  [spring-startup]  c.a.s.internal.scm.PluginScmService Stash is using /usr/bin/git version 1.9.3

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 06, 2018 in Bitbucket

Do you use Bitbucket Cloud and Jira Cloud? If so, let us know!

Hi Community, I'm Julia and I'm on the Jira Software Cloud marketing team!  We're looking for companies or teams using Bitbucket Cloud and Jira Software Cloud. If your team fits the t...

62 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you