youngmon/atlassian-qna huggingface dataset:
atlassian/email-notify:0.7.0 Failed to add an attachment. No such file reports.zip
Asked by Konstantin Netrebenko:

Hi everyone!  
I'm experiencing this error \`Failed to add an attachment. No such file reports.zip\` running the pipeline below. Could you please help me figuring out what's wrong?

![1660138725551.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/210445i002F4CA966643579/image-size/large?v=v2&px=999 "1660138725551.jpg")

Without attachment it works fine, an email drops into the destination.  
Below there's the pipeline output  
![1660138976416.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/210448i24F29392BAB70F39/image-size/large?v=v2&px=999 "1660138976416.jpg")


Answers:
author: Konstantin Netrebenko
body: SOLVED: a typo ;)


Tags: bitbucket-cloud

cloud
cannot remove task after removed containg comment
Asked by vlad:

So

1. Create Comment and associated Task

2. Delete Comment

Observed:

- task still appears in the PR Details

- cannot mark it done

- cannot delete it

Any way out of this ?


Answers:
author: Ben
body: Hey Vlad,

I have tested this on my end and can confirm that this is a bug, unfortunately there is no workaround for this at present - as the UI is clearly having issues and our API endpoints cannot delete tasks.

Thank you for raising this to our attention, I have logged this as a bug with our developers accordingly. Please feel free to "Watch" this for future updates and click "This Affects My Team" to improve its visibility:  
<https://jira.atlassian.com/browse/BCLOUD-22081>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Can't locate kiln repo
Asked by James Gliwa:

I'm trying to clone repos in the form of <https://some.company/path/to/repo> but keep receiving the following:

System.ComponentModel.Win32Exception: The System cannot find the file specified

fatal: repository '<https://some.company/path/to/repo>' not found.

Now, I've tried prefixing my username (which is not an email) like so - https://username@some.company/path/to/repoin but that doesn't work either.

I'm positive of my username and the repo path because a normal clone command works as expected:

hg clone <https://some.company/path/to/repo>

realm: kiln  
user: username  
password: \*\*\*\*\*\*\*\*\*\*

Is there some setup I'm missing in the Sourcetree client? None of the seemingly related questions ( [here](https://community.atlassian.com/t5/Questions/How-can-I-connect-my-Kiln-repo-in-the-Sourcetree-client-software/qaq-p/316921), [here](https://community.atlassian.com/t5/Bitbucket-questions/Can-SourceTree-connect-to-hosted-SVN-repos-through-SSH/qaq-p/113171), and [here](https://stackoverflow.com/questions/21564211/sourcetree-git-fatal-remote-error-repository-not-found)) have worked for me thus far.

Sourcetree Version 2.1.2.5

Thanks!


Answers:
author: James Gliwa
body: Moved to reply comment

comments: author: James Gliwa
body: Moved to reply comment


author: Ana Retamal
body: Hi James, can you confirm you're using the full URL

<https://yourcompany.kilnhg.com/Repo/>`...`

Can you also send us a screenshot so we can see how are you trying to clone the repo in SourceTree?

Lastly, please remember to mention which Windows version are you using.

Best regards,

Ana

comments: author: James Gliwa
body: Hi Ana,

So ours is set up to be the form:

```
http://bugz.company.com/kiln/repo/my/kiln/branch??
```

which isn't a normal kiln on-demand URL (<http://help.fogcreek.com/8091/on-demand-urls-for-kiln-and-fogbugz-on-demand>). Is that kind of URL supported? Or is there some translation to that kind of URL that I could use?

Normally, I use TortoiseHg (<http://help.fogcreek.com/7955/using-tortoisehg-with-kiln>) but I was hoping to be able to use Sourcetree as well.

Thanks!


Tags: kiln

mercurial
Source tree : Creating full request automatically merges the code
Asked by chetan B V:

Recently I set up our code to do code reviews . Buut when we create pull requests . Automatically the code gets merged to main branch. I dont know to to fix this. Please help ![Screen Shot 2017-07-27 at 4.22.14 PM.png](/t5/image/serverpage/image-id/3652i2C28C327617EAA2B/image-dimensions/533x205?v=v2 "Screen Shot 2017-07-27 at 4.22.14 PM.png")


Answers:
author: bgannin
body: SourceTree is simply populating a URL format to open in a web browser, performing a push prior in this case from *test4* to *test1*on the server. I'm curious about what the server is seeing/doing, especially if the same steps in the corresponding web UI are fine.

Brian Ganninger  
Senior Mac Developer, SourceTree
CVE-2017-8768
Asked by Brandon Jang:

.


Answers:
author: Daniel Eads {unmonitored account}
body: Hi Brandon,

Did the contents of your post get removed by mistake?

The CVE you mention was solved for Sourcetree in May (see [bug report](https://jira.atlassian.com/browse/SRCTREEWIN-7161)) - you need to uninstall any previous versions and install 2.0.20.1 or above from <https://www.sourcetreeapp.com/> (current version as of today is 2.1.2.5).

comments: author: Brandon Jang
body: I'm not too sure what happened with my earlier comments.

Thanks for the fast reply Daniel that's exactly what I was looking for.
External diff tool P4Merge not working in SourceTree
Asked by Gary Poon (Defond):

My PC OS is Windows 10. The external diff tool is P4Merge. Source Tree version 2.1.2.5

In Source Tree, when there is merge conflict, I launch the external diff tool P4Merge. In the P4Merge I resolved the conflict, click save and close the P4Merge. It is suppose that the conflict in the source tree disappear, however it is not. The conflict file still in the 'unstaged file" window. What is the problem and how to get around it? Thanks.


Answers:
author: minnsey
body: Hi  

SourceTree relies on the return code from the merge tool, p4merge in yoru case to determine if the conflicts have been resolved, it is possible something has changed between SourceTree or p4  

Can you raise a ticket for this at <https://jira.atlassian.com> including detals of the p4 version ?

Thanks


Tags: diff
How can I clone a repo with sourctree with included subtrees
Asked by Christof Seidel:

I have a git project where a subtree is included. If I clone this project, the subtree won't be shown on the sidebar on the left side. I don't know if this is a bug or if this is the normal behavior.


Answers:
author: minnsey
body: Hi  

Git does not record subtrees in the same way it does with Submodules. The information you see in the sidebar in SourceTree is recorded by SourceTree itself and so is not reproduced when someoone else clones the repository.


Tags: clone

subtree
Sourcetree does not update file after external diff resolution
Asked by Fran?ois Coupal:

I have an intermittent problem when I try to use an external diff tool (namely KDiff 3 on Windows 10) with sourcetree.

In a usual merge scenario between branches, one file have a conflict. I start KDiff3 using the usual "Resolve Conflict -\> Use external diff tool", the tools pops up, and then does it's magic.

Now, for simple modifications (one line) or complex ones (lots of lines), the result is the same. I review the modification, select which branches, and when I am satisfied with the modification, save the file, and then close the KDiff3 app.

Upon my return, Sourcetree has cleaned the compare files (I am refering to the "\*_BACKUP_SALT\*", "\*_BASE_SALT\*", "\*_LOCAL_SALT\*" and "\*_REMOTE_SALT\*" files that are generated during the call to the external diff app), as it should.

BUT, the original file with conflict remains, as if nothing happened. Which means all my work for conflict resolution has been lost.

When this happens, and because of this I know my handling of the external app is correct, I usually open the diff app, do THE EXACT SAME modification required (easy when only one line is conflicted), but instead of just closing the diff app, i refocus the sourcetree windows, return focus to the diff app, THEN close the diff app, and upon returning to the sourcetree app, all conflict files AND the conflicted file of the merge vanish from the "Unstaged files" windows.

Thing is, sometimes it happens, sometimes it does not, and my "fix" (if you can call it that) does not always prevent this behavior.

In light of this, is this a bug? If there a race condition where sourcetree blocks the correct handling of files by the external app, and then handles any error by just ignoring the modifications to the conflicted file? The is no error message whatsoever in either app, so it is quite difficult to see where things go bad.

Any help on this matter is welcome.

NOTE: I know sourcetree has issues when conflicts appears whenone of the file version is renamed or marked for deletion in the merge sequence: this is not this situation (which I handle by using the branches which deletes the files, usually). This is a standard content conflict on a single file.


Answers:
author: Bryan Wilber
body: I am having the same issue... Kdiff is launched. Merge is completed and saved. Back to sourcTree... file shows green now, but no changes have been saved. Would love to find a solution.


author: minnsey
body: Hi  

Thanks for the detailed information. SourceTree does not directly manage the merge/diff process rather it configures git to use the tool of choice and then instructs git to diff using the external tool.  

I have copied you details to the following JIRA ticket <https://jira.atlassian.com/browse/SRCTREEWIN-7648>  


Tags: windows
Source Tree 2.6 (123) crashing on OSX 10.12.5
Asked by LUKE HELG:

After installing the latest update, Source Tree crashes everytime I try to open a second repository. Only happens when the app is in fullscreen mode. When not in fullscreen mode the second repository opens in a new window, not in a new tab as it did in previous versions.


Answers:
author: Ana Retamal
body: Hi both! I've now upgraded to Mac OS Sierra and I've been able to reproduce the same issue. I've reported it as a bug, and you can find it at [SRCTREE-4900](https://jira.atlassian.com/browse/SRCTREE-4900). You can watch that ticket to receive future updates, or write a comment if you'd like to add something else.

Thanks for reporting this :)

Best regards,

Ana


author: LUKE HELG
body: [@Ana Retamal](/t5/user/viewprofilepage/user-id/1067288)Same here, new windows are fine.


author: barqowski
body: [@Ana Retamal](/t5/user/viewprofilepage/user-id/1067288) Mac OS 10.12.6  
Problem appears when I try to open repo in a new tab in fullscreen mode, not a new window.


author: Ana Retamal
body: Hi! I've tried reproducing this using OSX 10.11.6 and SourceTree 2.6 (123) and I was able to open my repositories in different windows with no problems.

[@LUKE HELG](/t5/user/viewprofilepage/user-id/681951) can you try installing the latest version from [our site](https://www.sourcetreeapp.com/)?

[@barqowski](/t5/user/viewprofilepage/user-id/1142503), which OS version are you using?

Best regards,

Ana


author: barqowski
body: I have the same issue. But my version is 2.6(123)

comments: author: LUKE HELG
body: Thanks was a typo, corrected.
Git Credential Manager for Windows keeps popuping up
Asked by Yair Sappir:

I know that this issue has been raised in te past and I went over all of the posts and "answers".

I tried editing gits config, system and global. I tried all sorts of passwords and usernames. Sometimes this annoying popup goes away for 10 minutes, sometimes days and sometimes it comes up every couple of seconds.

Please, Atlassian Team, could you please guide me on how to analyse this issue? How can I know what am I doing that is wrong? How can I know what repository is causing this? How can I know what username it expects?

Please help me, this is super annoying and affects our team's productivity.


Answers:
author: minnsey
body: Hi SoureTree for windows now shares credentials with Git via the Git Credential Manager or GCM.

The credentials for both are stored in the Windows Vault or Credentials Manger, the entries are prefixed with 'git:'  

To determine what is going on I would  

1) remove all existing 'git:' prefixed entries from the Windows Vault.  
2) remove any credentials from git config files.  
3) disable the automatic remote checking of repositories in SourceTree  

Then restart SourceTree and open each repository in turn and do a fetch. This should trigger the GCM to request credentials. Entering them there shoudl mean they are stored correctly.  

There have been issues with the GCM previously with HTTP rather than HTTPS URLs, if possible use HTTPS.  

Also is using Bitbucket try and ensure you are using URLs that contain the username, e.g. https://username@bitbucket.org/repo-owner/reponame.git  

The GCM can only store 1 set of credentials fro GitHub and hosts other than bitbucket. If you use multilpe accounts to access GitHub or another host the GCM will reprompt each time it changes account.

comments: author: Yair Sappir
body: Hi,

Number 3 seemed to do the trick.

Thank you very much!!

For others who have this issue, here is how you do it in SourceTree 2.1.2.5

1. Goto tools -\> options

2. Uncheck "Check default remotes for updates evey \[10\] minutes"


Tags: windows
Source tree and bit bucket queries related to heavy queue build-up
Asked by H Singh:

We had a recent issue on our GIT infrastructure due to heavy queuing up of requests. Our investigation led to the below findings.

1. We identified some of our developers using Atlassian Source Tree as GIT Client and had the default option ***"Check default remotes for updates every 10 minutes"*** enabled.

2. The queue build up was mainly due to frequent updates which did not seem to complete quickly.

We advised those developers to disable to "check default remotes" option and the situation recovered. Additionally, we have the "large files options" disabled in BitBucket to ensure there is a size control.

1. Is there a way to change the time and frequency of the "check default remotes..." option?

2. Are there any best practices around usage of Source Tree that may help avoid a similar occurrence as we deem this option to be necessary for developers?

3. What's the limiting size of the "large files options -- when disabled" beyond which the check-in function will fail?


Answers:
author: Ana Retamal
body: Hi! In response to your questions:
> 1. Is there a way to change the time and frequency of the "check default remotes..." option?

There is. You can find this option in the **Preferences** menu

![Preferences.png](https://community.atlassian.com/t5/image/serverpage/image-id/3542i3218A308CCC73268/image-dimensions/419x87?v=v2 "Preferences.png")
> 2. Are there any best practices around usage of Source Tree that may help avoid a similar occurrence as we deem this option to be necessary for developers?

We don't currently have any oficcial documentation on best practices for SourceTree, but I'm sure that many of our users have talked about it and could be found with a Google search :) On the other hand, we do have an article with some general Git best practices that you can find at [Smart branching with SourceTree and Git flow](https://blog.sourcetreeapp.com/2012/08/01/smart-branching-with-sourcetree-and-git-flow/).
> 3. What's the limiting size of the "large files options -- when disabled" beyond which the check-in function will fail?

When you mention "large file size option" in Bitbucket, are you referring to LFS? The only limit for Bitbucket is that repositories can not exceed 2 GB. If you have big files or media files, for example, it would be advisable to store them as LFS to lower the load (keep in mind that git won't manage large files too well). With LFS, you get extra storage for these files. For more information you can read [Handle big repositories with Git](https://www.atlassian.com/blog/git/handle-big-repositories-git) and [What kind of limits do you have on repository file upload size](https://confluence.atlassian.com/bitbucket/what-kind-of-limits-do-you-have-on-repository-file-upload-size-273877699.html).

Lastly, and if you still have more questions, remember to let us know which SourceTree version and OS are you using, as some features or menus might differ from one version to the other.

Best regards!

Ana


Tags: bitbucket

git
Crases at the commit
Asked by Anton Grishchenko:

Hi,

I get strange trouble.

If i try commit any changes SourceTree permanent crash, after that, when i try reopen SourceTree i recive message about missing a git. All options on this message produce first crash.

Maybe everybody know what is this?

Thank you.


Answers:
author: Mike Corsaro
body: Hello! Windows, or mac? If on windows, do you get a bugsplat report dialog? If so, can you upload the report when it appears and paste the ID it gives you? Thanks!
View Log graph of a file
Asked by Lee SP:

How do I view the log graph of a file?

I know you can right-click on a file a do "Log selected", but then it does not give you graphical representation of all the log of that particular file


Answers:
author: Mike Corsaro
body: Hello! Currently, SourceTree does not have that feature. Sorry!

comments: author: Lee SP
body: Hi,

Do you think it is a good feature? I know TortoiseGit has it.

Otherwise how would ppl track the history of a file? I'm not familiar with SourceTree (or rather, Git) that's why I'm asking.. I've used Rational Change and I think it is very useful to be able to see the log of a file

Thanks.


Tags: graph

log
Dark theme looks horrible - customization available?
Asked by Peter Bon?:

Dear Atlassian,

Altough i very much welcome the Dark Theme feature (so excited actually!), i'm sorry to say that it looks absolutely horrible.

Is there any chance you could have a designer with some knowledge of color theory run through the design? :) Or give us the ability to customize it ourself. If so, please also disable the transparency in the sidebar. If interested i'm sure a lot of the members from the community (including me) would pitch in with tons a suggestions for improvements on the color scheme, which right now is quite a big mess and horrible to look at.

Thanks in advance! :)


Answers:
author: Adam Ho?ek
body: (on macOS) with default settings it looks ok-ish, but when you turn on the accessibility option "Reduce transparency" in System Preferences, it is, paradoxically, absolutely terrible! So I stay with the default light theme, because I really don't like the transparency of macOS.


author: Ana Retamal
body: Hi Peter! If there's anything you'd like to improve within SourceTree, please feel free to raise your suggestion at [jira.atlassian.com](https://jira.atlassian.com/secure/Dashboard.jspa) by clicking on **Create**. That way it will get visibility from the developers and other users will be able to vote for it and add their comments.

Thanks for your support :)

Ana


Tags: custom-field

theme

user-interface
does any support for git rerere for source tree
Asked by Ariel Zhang:

<https://git-scm.com/blog/2010/03/08/rerere.html>

seems git rerere is a very cool feature, how can I use it in source tree ?


Answers:
author: Manju
body: We do not support this feature as of yet. Please feel free to submit a new feature request on jira.atlassian.com

Thanks!  
Manjunath  
SourceTree Mac Developer
Can/Does SourceTree use local git config for Merge and Diff tool settings?
Asked by Eriks Vitolins:

It seems that setting a custom tool for either merging or diffing is always set within git's global config area.

Due to the needs of our team, I require explicit control of the merge workflow for all team members, and need to automate the settings of custom diff tools. (aka Unity \& UnityYAMLMerge).

**Example config items:**

```
mergetool.sourcetree.cmd=/Applications/Unity_5_5_3/Unity.app/Contents/Tools/UnityYAMLMerge merge -p $BASE $REMOTE $LOCAL $MERGED
mergetool.sourcetree.trustexitcode=true
difftool.sourcetree.cmd=/Applications/Unity_5_5_3/Unity.app/Contents/Tools/UnityYAMLMerge merge -p $BASE $REMOTE $LOCAL $MERGED
difftool.sourcetree.path=
```

Ideally, I would like to have my team's *local git config* set to control these behaviors... allowing explict workflows per repo.  

Am I missing something, or does SourceTree only utilize the global config in this respect?

**Secondly...**

It seems that manually editing the global config settings for SourceTree's custom Diff and Merge tools seem to be overwritten when relaunching the application. This removes any chance of automation, and requires each team member to enter custom tool paths/variables manually.

It seems that SourceTree does not reference \`\~/.gitconfig\` on launch, but overwrites it on launch (I'm guessing from a separate, SourceTree-specific preferences file). ++This is NOT ideal.++

Any help would be appreciated :)  

<br />

(SourceTree 2.5.1 MacOS)


Answers:
author: Manju
body: Hi [@Eriks Vitolins](/t5/user/viewprofilepage/user-id/81718)

To answer your questions,

1. does SourceTree only utilize the global config in this respect?

Yes, SourceTree uses the global config only and not local config per repo for diff and merge tool.

2. Does SourceTree reference global config on launch?

Though we write the settings from SourceTree to gitconfig, we are not reading from it right now. Feel free to submit a bug for this on jira.atlassian.com

However, we write these info to defaults and I can share the relevant keys with you if required. Before that, I would recommend you to try setting "custom" diff / merge tool in preferences and the commands with the args and let me know if that works.


Tags: diff

merge
Checkout hash not branch
Asked by RSkon:

I'm just wonder if there is posibility to checkout just commit (hash) but NOT checkout the branch.

So basically I will end up with detached head. And it's what I want.

**Reason why:**when you are reviwing someone code, you want to have the full codebase in your machine, so you want to checkout the changes. But when I checkout branch, I will create my local branch and I will have to "keep it up-to-date" if they will move the original one.

So the easy way is to just checkout the commit it self (by checkout hash) and not have the branch at all. No need to delete the branch later, if they will finish the work and merge it.

**Workaround:**   
Right now, I just copy hash (context menu), open console, and manually write \`git checkout \[paste the hash\]\`

But it will be easier if I could do it from application itself :)


Answers:
author: Manju
body: If you are using it on the macOS, just double click on the table row for the commit you want to check out. And I presume, its similar on widnows too.

comments: author: RSkon
body: Not quite... If you just double click, it will be the same as you will select "Checkout" in context menu.

But if you do this on commit which is the head of some branch, you will see the window "Checkout New Branch".

And this is what I DON'T want to do. Because I want to checkout just commit not branch, and stay in detached head state.


Tags: check-out