youngmon/atlassian-qna huggingface dataset:
Bitbucket pipelines - Admin permission for CICD script
Asked by Itzik Ezra:

Hello,

I'm looking to grant Admin permissions to the CI/CD script running on a self-hosted Windows server runner.  
Now, the script is runing via SCP_USER and It's causing some serious problems.

Could you please guide me on how to accomplish this?


Answers:
author: Patrik S
body: Hello [@Itzik Ezra](/t5/user/viewprofilepage/user-id/5252622) and welcome to the Community!

I'm not sure if I fully understand your request, so I'd like to ask the following questions :

1. Would it be possible for you to share the bitbucket-pipelines.yml file of your build and which exact script you want to execute with Admin access?
2. When you mentioned the CI/CD script, did you mean a custom script that you have in your repository and is executing as part of your build step, or did you mean the bitbucket-pipelines.yml file?
3. If it's a custom script, is it your end goal to execute this script as Admin in the self-hosted runner?

Let me know if you have any questions.

Thank you, [@Itzik Ezra](/t5/user/viewprofilepage/user-id/5252622) !

Patrik S


Tags: bitbucket-cloud

cloud
My Bitbucket API rate limit has remained in effect for longer than the documentation states.
Asked by Tate Zellner:

Is there something else i need to do to remove the rate limit for requests? I waited 1 hour yesterday and was not able to send requests, and now it is 20 hours later and I am still only receiving error 429 from the API.

This is also (i think) causing repositories not to load in the web view.

Bitbucket cloud's rate limit documentation:

[https://support.atlassian.com/bitbucket-cloud/docs/api-request-limits/#:\~:text=Access%20to%20repository%20data](https://support.atlassian.com/bitbucket-cloud/docs/api-request-limits/#:~:text=Access%20to%20repository%20data)


Answers:
author: Theodora Boudale
body: Hi Tate,

I see that you have already created a support ticket for this issue, I just wanted to leave a reply here for any other users who may come across your post.

If you keep getting 429 errors, your account's credentials may be used in multiple places (multiple scripts, perhaps a CI tool) and you may be only looking at the API calls made from one of them.

You need to figure out where your Bitbucket credentials are used in order to either remove them or adjust the number of API calls made with them.

The support engineer working on your ticket has provided you with additional details about the API calls made with your credentials.

Kind regards,  
Theodora


author: Tate Zellner

Tags: bitbucket-cloud

cloud
Show the Commit ID in the runners LOG
Asked by Rafael:

We are using the Bitbucket runner, running with the Agent on a Windows Server 2016.

Our Builds and tests are running, but now we want to include the commit id into our source.

To test the content of the variable, I tried  
script:  
- echo "${BITBUCKET_COMMIT}"  
- echo $BITBUCKET_COMMIT  
- echo %BITBUCKET_COMMIT%  
Nothing is working, I can't see the ID in the runner log.  
I just want to write the commit number into a file.  
Runner version:
current: 1.473


Answers:
author: Aron Gombas _Midori_
body: See: <https://confluence.atlassian.com/bbkb/how-to-access-environment-variables-in-windows-runners-on-bitbucket-cloud-pipelines-1188416648.html>

The syntax is a bit different when using Windows runners.


Tags: bitbucket-cloud

cloud

scriptrunner
Unable to login Bitbucket - We couldn?t log you in
Asked by dyoungky:

Hello, I tried to sign in to Bitbucket, but I could not.

Could you help me to do it?

Thanks:)


Answers:
author: Theodora Boudale
body: Hi [@dyoungky](/t5/user/viewprofilepage/user-id/5254367) and welcome to the community!

Your Bitbucket cloud account was set to inactive which I believe is the reason why you couldn't log in.

I went ahead and reactivated it, could you please try logging in now and let me know if it works?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How do I get a list of all commits that involve a certain file?
Asked by lucbloom:

There is the "search" box in SourceTree, but I cannot select "file" there.

There is the "Log Selected" menu item, but it doesn't aggregate a list of commits, but rather an abbreviation. Double clicking it will go to the commit, but this way I lose the list. On top of that it's cumbersome to switch the file view settings to "All files" (and back) just to do a search.

Feature request: have a setting in the search box that produces a list of commits that contain a filename that matches the search (std::regex preferably :-).


Answers:
author: bgannin
body: Hi [@lucbloom](/t5/user/viewprofilepage/user-id/1135556),

Please vote on or file a ticket ([Windows](https://jira.atlassian.com/browse/SRCTREEWIN), [Mac](https://jira.atlassian.com/browse/SRCTREE)) with details on your use case so we can gauge demand when prioritizing items in the roadmap.

Thanks,

Brian Ganninger  
Principal Developer, Sourcetree
Issue with adding GITHUB Enterprise account on mac. Save Button is a nop
Asked by dare wreck:

Problem: Tried adding an ssh account to access a github enterprise. The save button is enabled which indicates all required info is added. When I press the save button, it does nothing and the window says open. It looks like it does a no op.

Preference-\>Accounts-\>Add

Host: GitHub Enterprise

Protocol: SSH

Filled in required info

Save Button enabled

Press Save button. Nothing happen and the modal still stays up. Cancel works thou.

Version: 3.1.2(216)

System Git: 2.20.1

Embedded git-lfs 2.6.1


Answers:
author: bgannin
body: Hi [@dare wreck](/t5/user/viewprofilepage/user-id/877655),

I'll have our QA team give this a try to see what happens. Thanks for your report and patience.

Brian Ganninger  
Principal Developer, Sourcetree


Tags: github

ssh
Sourcetree doesn't reopen project at startup on Windows
Asked by egoulet:

I have the setting "Re-open reposistory tabs at startup" but when I start Sourcetree my repository is not open.

Environment

Sourcetree version: 3.1.3

Windows: Windows 10 Enterprise


Answers:
author: Steve Ingram
body: I had the same on 3.3.8, had to reopen repos everytime. Then I found the option to re-open tabs at startup....! I'd like to think this got turned off with an update, but it could have been fat fingers!

Tools \> Options \> General \> Repo Settings - 5th checkbox down


author: Mike Corsaro
body: Hello!

It sounds like the open tabs are not being saved to disk -- could you do the following for me?

* Open Sourcetree and open some tabs
* Close Sourcetree
* Find the open tabs file under "C:\\Users\\USERNAME_HERE\\AppData\\Local\\Sourcetree\\opentabs.xml"
* Check the contents and see if your tabs got saved

If they got saved but are still not loading then this might be a bug on our end.

Thanks!

comments: author: BenHT
body: I had this on a new Windows 10 install until I closed it and re-opened it.

I wonder if it doesn't always get the chance to save the tabs on Windows shutdown.


author: Mark Derbecker
body: Same here-- had to shut down via the File menu and then things came up the way I'd expect.

Note that I do not see an opentabs.xml in the location that Mike specifies, I'm on Sourcetree 3.3.8.


Tags: windows
How do you know the git command for the sourcetree operation?
Asked by lizhuoyuan:

Excuse me, if I want to know the git command corresponding to the operation of souretree, what should I do?

for example :

![QQ??20190529145713.png](/t5/image/serverpage/image-id/55996iE6D867A31C493D90/image-size/large?v=v2&px=999 "QQ??20190529145713.png")

I performed this operation , but I don't know how to use git command to implement this function.


Answers:
author: Mike Corsaro
body: Hello! You can inspect the git commands run by using the built-in Process Viewer. You can find it under "Tools \> Process Viewer". It will show you the commands that have been run (make sure you open it before running the command).
Did I create this ticket correctly?
Asked by wakefly_cbass:

There seems to be a bug in SourceTree that shows extraneous merge items - I tried to report it and the process seems to be to create a JIRA ticket - so I did that:

[https://jira.atlassian.com/browse/SRCTREEWIN-11684](https://jira.atlassian.com/browse/SRCTREEWIN-11684?filter=-2)  

Did I do that correctly, and if so, is there any chance of a fix in the near future?


Answers:
author: bgannin
body: Hi [@wakefly_cbass](/t5/user/viewprofilepage/user-id/3030438),

Thank you for filing the detailed ticket, we'll take it from here ? As a very small team we're not able to provide ETAs on any particular ticket or release but I'll make sure the appropriate folks are aware.

Cheers,

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: wakefly_cbass
body: Thank you!
Can't not add MORE bitbucket accounts in SourceTree
Asked by NusEnvision:

Hi,

I've got the ST 3.1.3 and I have already two bitbucket accounts set up.

Now I want to add one more but ST does not allow me. It says there is already one account.

Thanks


Answers:
author: Mike Corsaro
body: Hello! This is currently a limitation of Sourcetree, however you should be able to still download repos from any account by using the "Clone" screen after opening a new tab. Sourcetree will prompt for credentials and everything should work fine.

Alternatively you may add multiple SSH keys (via putty) which will prevent being prompt for login.


Tags: bitbucket
I can't get SourceTree invitation email by office365 mail Account
Asked by JeonMinWoo:

My team Leader invited me to repository by email(mwjeon@epopcon.com - office365).

But I can't get the mail.

**I didn't set any configuration and block program.(It's a new account!).**

And then My team leader sent invitation email to another mail Account(mut0625@naver.com).

I can get the mail.

**I think atlassian server can't send email to office365(outlook).**

Now I temporary use @naver.com.

but my team usually use office365.

So I want to use office365 mail domain.

**How to solve the problem?**


Answers:
author: bgannin
body: Hi [@JeonMinWoo](/t5/user/viewprofilepage/user-id/3250756),

This isn't related to Sourcetree at all AFAICT, it's related to whatever hosting service (presumably Azure DevOps?) your company is using and the permissions involved. You'll need to work with the administrator and that product to narrow what's going on and how ST is involved. We'll be here to help once there's additional information.

Cheers,

Brian Ganninger  
Principal Developer, Sourcetree
Waiting for Login installing SourceTree
Asked by GUNDETO:

Hello,

I have problems installing SourceTree, beacuse the installer does not continue when I login at Atlassian. I found several other users having this problem and tried their approaches solving that problem. I am working at a company with some restrictions and cannot change the settings of the Internet Explorer by myself. Well, using othere browsers does not solve the problem and they do not have that kind of security settings. In general I started the installation process as an administrator, but without success. Necessary trusted sites were added by my company, too.

Furthermore I tried to install the programm out of my companys network, what did not change anything.

Is there an official approach to solve that problem? Are there any restrictions on the operating system or othere necessary boundary conditions? I am using Windows 10, version 1803.


Answers:
author: bgannin
body: Hi [@GUNDETO](/t5/user/viewprofilepage/user-id/3193235),

The latest versions of Sourcetree don't use an embedded IE to register, it uses your default browser. Please make sure you're installing the latest. After that you'll just need to register by logging in with a Bitbucket Cloud or Server account. Hope that helps.

Brian Ganninger  
Principal Developer, Sourcetree
SourceTree GitFlow keeps asking to finish feature
Asked by ccino:

I am using SourceTree v3.0.8 in Windows. In SourceTree, when my current branch is 'develop' and I click on Git-flow in the toolbar, the pop-up dialog thinks develop is a feature branch and offers only to either 'Finish Feature' or 'Other Action' (ie, it doesn't offer to 'Start New Feature').

If I then click on 'Finish Feature', it pops up the Finish Feature dialog box with 'develop' in the Feature Name dropdown. If I wait a few seconds, 'develop' disappears from the dropdown and the 'OK' button becomes disabled. If I click on the Feature Name dropdown, the list is completely blank.

It seems to me that some configuration file is wrong, but I have no idea where or what that file may be.

Any suggestions? Thank you in advance.


Answers:
author: ccino
body: Actually, shortly after posting the question, I have found the problem (it appears that it could be a bug in SourceTree in initializing GitFlow).

I looked at the .git/config file in my project and the '\[gitflow "prefix"\] section was as follows:

```
[gitflow "prefix"]
  feature =
  bugfix =
  release =
  hotfix =
  support =
  versiontag =
```

I then looked at the .git/config file in another project where Git Flow is working properly and that file was as follows:

```
[gitflow "prefix"]
  feature = feature/
  bugfix = bugfix/
  release = release/
  hotfix = hotfix/
  support = support/
  versiontag =
```

When I copied that section over the top of the section in the config file in the project where Git Flow wasn't working, that fixed the problem.

So it seems that there may be a bug in SourceTree where it doesn't properly initialize gitflow in the config file.


Tags: git-flow
When using System git, my git config --global file is still SourceTree's?
Asked by IBrown_BluePrint:

I'm using SourceTree and Git 2.21.0 for Windows and was having a lot of trouble with configuration. SourceTree is set to use the system git install and shows the proper 2.21.0 version number. I ran these commands in a non-repository directory in command prompt and got surprising results:

- \`git config --list\` outputs mostly my \`%ProgramData%\\Git\\Config\` file's contents.

- \`git config --global --list\` output conflicting configuration data

- \`git config --global --edit\` opened \`C:\\Users\\Me\\.gitconfig\`. I thought this was just the SourceTree global, I expected it to open the one in ProgramData.

- \`git config --system --edit\` opened \`C:\\Program Files\\Git\\mingw64\\etc\\gitconfig\` as expected

- From the \`%ProgramData%\\Git\\\` directory, \`git config --edit\` produced an error.

\> fatal: not in a git directory

How is \`git config\` able to list my \`%ProgramData%\\Git\\Config\` contents but not edit that file and what is it if it isn't System, Global, or Local config? Why is \`git config --global\` using the SourceTree file, is that just the default path to the Global config for git on Windows?


Answers:
author: IBrown_BluePrint
body: Git for Windows has a 4th configuration file that cannot currently (v2.21.0) be edited from command line that is stored as \`C:\\Program Data\\Git\\config\`. They are loaded before even System and so have the lowest priority.

Using \`git config --list --show-origin\` will show you where each configuration comes from.

Somehow, I got it in my head that this was the location of the global config file in windows when it is actually still \`C:\\Users\\\<UserName\>\\.gitconfig\` which is the same file used by SourceTree's embedded git if you use that.


Tags: windows
Sourcetree always popup Authenticate dialog
Asked by Bicen Zhu:

Eventhoug I input the correct username and password, it still continously asked me

It anoyed me for a long time, I tried servral new versions ,it does not help

The URL in the following picture is a intranet gitlab

1. OS: Win10

2. Sourcetree version: 3.1.2

3. ![3.png](/t5/image/serverpage/image-id/55632i2AB51022B432B839/image-size/large?v=v2&px=999 "3.png")


Answers:
author: Mike Corsaro
body: Hello! Could you try downloading the newer version of the git-credential-manager-for-windows? [You can find it here](https://github.com/Microsoft/Git-Credential-Manager-for-Windows/). Alternatively, try downloading the newest version of git-for-windows and make sure the step to install the credential manager is checked (you'll also need to tell Sourcetree to use the system-wide git install).
Why can't I move the window when it's maximized?
Asked by AHART_SERTIFI_COM:

Why has this not been resolved? It keeps getting ignored, or being marked as resolved when it in is fact not.

Reference: <https://jira.atlassian.com/browse/SRCTREEWIN-6983>

Environment:  
Windows 10  
Sourcetree App ver. 3.1.3

Repro:

Maximize the source tree app

Move mouse to title bar. Click and drag, nothing happens.


Answers:
author: Mikael Sandberg
body: Hi Adam,

Welcome to the Atlassian Community.

I just tried to recreate this issue on my Windows 10 and Sourcetree 3.1.3.3158 and it behaves as expected, so to me it looks like Atlassian fixed it. As mentioned in the issue, it looks like it depends on where you put the cursor when in full screen mode and trying to drag it.

comments: author: AHART_SERTIFI_COM
body: I stand corrected. For anyone else wondering, make sure your mouse cursor is not at the top most part of the title bar. It has to be a pixel or two below the top. Takes more effort than just ramming the mouse up, but works. Thanks [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) for pointing that out.
Hi, when I'm installing SourceTree in the Atlassian Account step, when I click on the "Use an existi
Asked by Adrian del Valle C?rdenas:

SourceTree


Answers:
author: Ana Retamal
body: Hi Adrian, welcome to the Community :)

Seems like your message wasn't submitted correctly. To make sure you're posting a great message with all the necessary information for us to troubleshoot this issue, make sure you provide the following together with your description of the issue:

- Which Sourcetree version are you using?

- Which OS?

- A screenshot

Thanks!

Ana
Sourcetree has stopped working
Asked by Bruce Zhang:

I find below in sourcetree.log file.

2019-05-23T11:13:10: no configuration section \<common/logging\> found - suppressing logging output  
ERROR \[2019-05-23 11:13:16,820\] \[1\] \[SourceTree.Analytics.Submission.Gas.GasAnalyticsSubmissionService\] \[Log\] - Hi There!  
ERROR \[2019-05-23 11:15:50,303\] \[1\] \[SourceTree.Analytics.Submission.Gas.GasAnalyticsSubmissionService\] \[Log\] - Hi There!


Answers:
author: Bruce Zhang
body: Hi Brian,

I installed sourcetree 2.6.10 in Nov. 2018 and I can run it. And I don't use sourcetree for several months.

I cannot start and use sourcetree from May 2019. And I installed sourcetree 3.1.2. It still cannot start.

Thanks,

Bruce


author: Bruce Zhang
body: Hi Brian,

My OS is Windows 7. I have to click "Close the program". So I cannot start and use sourcetree program. Please help it.

![Capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/56767i80CC5A6865B1FC57/image-size/large?v=v2&px=999 "Capture.JPG")

Thanks,

Bruce

comments: author: bgannin
body: That's unrelated to the log messages AFAIK. That's a hang and needs to be further triaged.


author: bgannin
body: Hi [@Bruce Zhang](/t5/user/viewprofilepage/user-id/3196201),

Those are harmless debug logs and we are aware of the change. It does not impact the usage of the app.

Cheers,

Brian Ganninger  
Principal Developer, Sourcetree
Sourcetree automatic generate merge commits?
Asked by jcwsw129:

What can I do to prevent this happning?  

Thanks

<br />

![Screen Shot 2019-05-23 at 2.07.31 PM.png](/t5/image/serverpage/image-id/55483i37EA34824BAAF866/image-dimensions/451x146?v=v2 "Screen Shot 2019-05-23 at 2.07.31 PM.png")  

<br />


Answers:
author: Mike Corsaro
body: Hello! This is just how git handles merges. We don't currently have an option to disable display of merge commits but if it's something more users would like then we can consider adding that.

Thanks!


Tags: mac
git-flow branch name ref-format error
Asked by LuccccccK:

I use sourcetree 3.1.3.  
In git-flow, it is divided into groups like "id/8" and operated by branch, but this naming can not be done from 3.1.3.

I have referred to the following site, but this naming does not seem to be violating.  
URL: <https://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html>

Is there a way to avoid this naming error?  
please tell me.


Answers:
author: Mike Corsaro
body: Hello! We added this restriction due to a security issue discovered a few months ago. As a work around you'll need to use the Terminal (just click the terminal button) and you can use the git-flow commands from there.

Sorry about that!
Sourcetree keeps crashing after launch
Asked by Mickey Katz:

I recently added a new repository to my Sourcetree and it keeps crashing. It is also now showing a new tab with my user id that doesn't link to any real repository.

Screenshot: <https://www.screencast.com/t/s3ZX98v65t6N>

Version: 3.1.3

Windows Logs: <Sourcetree Error Logs 5.21.19>

I've successfully had multiple repositories cloned in Sourcetree in the past and all the files in this new repository were previously saved in another repository cloned in Sourcetree. I also successfully committed the files in this repository when I managed to get the app to work for long enough without crashing.

I also tried going through all the steps in [this post](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-crashes-on-opening-repository/qaq-p/87056), reinstalling the app and deleting all the suggested files in my AppData folder but am still seeing the same issues.


Answers:
author: Mickey Katz
body: Turns out this was related to [this issue.](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-loading-windows-profile-as-a-repo/qaq-p/588756)

I was able to resolve by changing the settings on my user directory by searching "file explorer options" and selecting "Show hidden files, folders, and drives" under the 'View' tab. I then deleted the .git folder from my user directory and my Sourcetree is no longer crashing.

comments: author: John Obrecht
body: God bless you... this solved my issue after wasting an entire afternoon.
What do these lines in Source Tree Git history mean?
Asked by Brendan:

![source-tree-lines.PNG](/t5/image/serverpage/image-id/55250i0B18C541E1C757B2/image-size/large?v=v2&px=999 "source-tree-lines.PNG")

What do these lines mean? One end is connected to a dot, the other just crosses all the lines and they're a different colour to the farthest line that they cross on the right.


Answers:
author: Brendan
body: Some of the graph was just not shown. Widen column to see the rest of the graph.
Error received while opening/cloning repository
Asked by Mohammed Mubeen Ahmed:

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false ls-remote  
Output:  
Error: fatal: unable to access 'C:\\ProgramData/Git/config': Permission denied


Answers:
author: Ana Retamal
body: Hi Mohammed, welcome to the Community!

We'll need more information to help you troubleshoot this issue, can you please provide the following?:

1. What steps are you following to open/clone those repositories
2. Which Sourcetree version are you using?
3. Which OS do you have? (If Windows, make sure Internet Explorer is updated to the latest one as Sourcetree relies on it for the authentication step)

Let us know!

Best regards,

Ana