youngmon/atlassian-qna huggingface dataset:
I got error message when I tried to delete a repository in Bitbucket
Asked by Maha:

I'm Admin in Bitbucket, and when I tried to delete a repository I got this error message: An error occurred while processing the request. Check the server logs for more information.


Answers:
author: Nic Brough -Adaptavist-
body: What do the logs say the problem is?

comments: author: Maha
body: ```

2022-02-13 17:06:22,740 ERROR [http-nio-7990-exec-533] M.Abuhayah @4GGPEAx1026x77835065x5 ohyzv2 172.25.70.250 "DELETE /users/m.albrahim/repos/test-may HTTP/1.1" c.a.e.i.AsynchronousAbleEventDispatcher There was an exception thrown trying to dispatch event [com.atlassian.bitbucket.event.repository.RepositoryDeletionRequestedEvent[source=com.atlassian.stash.internal.repository.DefaultRepositoryService@5df8c597]] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassian.bitbucket.internal.webhook.WebhookCleanupService.onRepositoryDeleted(com.atlassian.bitbucket.event.repository.RepositoryDeletionRequestedEvent), listener=com.atlassian.bitbucket.internal.webhook.WebhookCleanupService@48736a95} (monitored)]
2022-02-13 17:06:22,757 DEBUG [http-nio-7990-exec-533] M.Abuhayah @4GGPEAx1026x77835065x5 ohyzv2 172.25.70.250 "DELETE /users/m.albrahim/repos/test-may HTTP/1.1" c.a.s.i.e.TransactionAwareEventPublisher Deferring publishing for RepositoryDeletedEvent until AFTER_COMMIT
2022-02-13 17:06:22,759 ERROR [http-nio-7990-exec-533] M.Abuhayah @4GGPEAx1026x77835065x5 ohyzv2 172.25.70.250 "DELETE /users/m.albrahim/repos/test-may HTTP/1.1" c.a.s.i.r.e.DefaultUnhandledExceptionMapperHelper Unhandled exception while processing REST request: "DELETE /users/m.albrahim/repos/test-may HTTP/1.1"
```


author: Nic Brough -Adaptavist-
body: This sort of error happens when you hit the wrong URL for the action.

How were you trying to delete the repository?


author: Maha
body: From the repository settings


author: Nic Brough -Adaptavist-
body: Bother, I was hoping it was something that would be hitting the wrong URL, but the admin UI (including repository settings) should not be able to do that.

Are there more bits of log in this area that might be relevant?


Tags: bitbucket-server

server
I am not able to register my sourcetree using my bitbucket loginid and password.
Asked by Bret Henderson:

SourceTree was working fine and then one day it started giving me this error when I pull or try and create a new repository.

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin  
Access denied  
Access denied  
Access denied  
Access denied  
Access denied  
FATAL ERROR: Server sent disconnect message  
type 2 (protocol error):  
"Too many authentication failures for git"  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights  
and the repository exists.


Answers:
author: Bal?zs Szakm?ry
body: You might have to reset your password.
Does SourceTree have an interface for git-hooks?
Asked by Swift Capital:

Not much else to be said. We'd like to work with git-hooks without having to use the command line.


Answers:
author: Bal?zs Szakm?ry
body: There is no option for this in SourceTree. Just copy the hooks into the /.git/hooks/ folder of your clone.

comments: author: Swift Capital
body: I'm accepting this answer, although I'm also putting in a suggestion for SourceTree.


author: Swift Capital
body: <https://jira.atlassian.com/browse/SRCTREEWIN-3157>


author: Chris H (OG)
body: SourceTree Mac 2.7.6 here: \`/.git/hooks/\` is not working anymore.


author: GeroHerkenrath
body: Just in case, Chris: Are you sure you set the hook script(s) to executable (chmod +x)? I just got here via google because I forgot to do exactly that.

git throws a warning (at least 2.17.1 does) on the console if it sees a script but it isn't set to x, but unless you have the "Command History" shown in SourceTree you won't see that. Was scratching my head for a bit why my very simple pre-commit wasn't called.


author: ChristoKiwi
body: [@GeroHerkenrath](/t5/user/viewprofilepage/user-id/2066693) Yup, tried making the hook script executable ?

Using GIT version: 2.17.1


author: Chris H (OG)
body: Oh my.  
[@GeroHerkenrath](/t5/user/viewprofilepage/user-id/2066693) I had run **chmod +x** on the hook file but just now also tried opening up the file with **chmod 0755**

Bingo, hook is now picked up.

Thanks for getting me on the right path at least!
Is there a way to download pre-push git-hooks from Stash to SourceTree?
Asked by Swift Capital:

Is there a way to integrate SourceTree with Stash or BitBucket, such that a pre-push git-hook could be specified server-side, and automatically installed on SourceTree clients?

This is not about pre-receive git-hooks. We're specifically looking for a way to deploy a pre-push git-hook to everyone on the team.


Answers:
author: TimP
body: The usual pattern for this is to commit the hook to the repository (e.g. `hooks/pre-push`) and then get each team member to symlink (or copy) it into their .git/hooks directory:

`ln -s hooks/pre-push .git/hooks/pre-push`

There is no way to enforce that a git hook runs on the client-side, you must rely on your developers to install it themselves (I usually document the process in the repositories README) and, for important hooks - e.g. running tests or lint tools - run them on the server as well.

comments: author: Swift Capital
body: I'm accepting this answer, although I'm also putting in a suggestion for SourceTree. We're always looking for ways to utilize team settings to enforce standards.


author: Midori
body: As Tim writes, this is an unsolved problem, normally addressed with conventions.

With the [Commit Policy Plugin](https://marketplace.atlassian.com/plugins/com.midori.jira.plugin.jira-commit-policy-plugin/server/overview), we use a different approach to [install dynamically generated client-side commit-msg scripts](http://www.midori-global.com/products/jira-commit-policy-plugin/documentation/git#installing-local-commit-hooks):

1. The script, composed of multiple files, are dynamically generated on the server
2. Those are delivered to the user as a ZIP file after he selected some options in a wizard interface
3. After the ZIP is downloaded, he needs to extract this, and we provide a simple step-by-step for that in the same wizard

So far, it works fine. (As the scripts are dynamic, we can't include them directly in the repo content.)


author: Swift Capital
body: We're looking to enforce "all unit tests and integration tests must be run before a push". While we have these running on the server to, we'd rather our devs be pro-active then re-active when it comes to hunting down problem areas.


author: JamieA
body: I don't believe there is. Out of interest, roughly what do you want to do in the client side hook?


Tags: bitbucket-server
SourceTree external diff crashes Git with libiconv-2.dll missing
Asked by Michael Labbe:

Various commands, including external diffing crashes the Git executable. The commands don't run. The popup dialog is:
> git.exe - System Error. "The program can't start because libiconv-2.dll is missing from your computer. Try reinstalling the program to fix this problem."

I have tried configuring SourceTree to use the embedded and system Git with no differences. System Git is Msysgit 1.9.5.


Answers:
author: Eduard Ragimov (underscor3e)
body: HI. My solution was simple:

1. Open the "Option" window.
2. Select "Git".
3. Than "Use System Git".
4. And press OK button.

* Screenshot (46).png

[](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-external-diff-crashes-Git-with-libiconv-2-dll-missing/qaq-p/241963?attachment-id=10534){#link_116a6f56a000cb}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/7095/1/Screenshot%20(46).png){#display_116a6f56a000cb_0}

comments: author: TooLz
body: This fixed it for me :smile: Thanks, that was bugging me for like a week.


author: alex75
body: I had the same problems and I tried all the possibilities copying the dll all around.SourceTree version 1.6.25. I never changed the embedded/system Git version option.I think it happens because I unistalled old Git (version 1.8.3) with the curent one (I also have TortoiseGit correctly installed). Now my Git is 2.6.3.At the end I solved the problem with this:Tools \>\> Options \>\> Git \>\> Update embedded Git.It pass from 1.9.5 to 2.6.1. and now it works.Alessandro


author: OptimisticMonkey
body: BTW - <http://stackoverflow.com/questions/3431361/git-for-windows-the-program-cant-start-because-libiconv2-dll-is-missing> fixes it....

But what is the point of Embedded Git in SourceTree if it relies on external git?


author: OptimisticMonkey
body: This has started happening for me as well...

Basically cannot use SourceTree on Windows anymore... I have reinstalled several times, configured to use Embedded git and not Embedded... Reinstalled git....

Nothing helps.

Git, Githuib both work..... but SourceTree just gives error

Completely broken.

Not sure what else to try.,

![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")


author: Seth
body: <http://stackoverflow.com/questions/3431361/git-for-windows-the-program-cant-start-because-libiconv2-dll-is-missing>


Tags: windows
What causes this error: "bad index file sha1 signature" ?
Asked by thinsoldier:

Screen Shot 2015-04-02 at 7.17.37 PM.png

'git status' failed with code 128:'error: bad index file sha1 signature fatal: index file corrupt'  
[](https://community.atlassian.com/t5/Sourcetree-questions/What-causes-this-error-quot-bad-index-file-sha1-signature-quot/qaq-p/11567?attachment-id=12277){#link_11742b79a5a37f}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/356/1/Screen%20Shot%202015-04-02%20at%207.17.37%20PM.png){#display_11742b79a5a37f_0}


Answers:
author: Bal?zs Szakm?ry
body: It seems that your local clone is corrupted. Delete it and clone again from the server.
Sourcetree merge - change log.
Asked by Ritesh Kale:

I am facing an issue with SourceTree (on Windows) merge. In the Log/History tab, I am able to see the two parents that were used in the merge. But the Log/History tab shows only the files that were affected by one parent. How can I see the files that were changed by the second parent in the merge? Am I missing something here?


Answers:
author: Bal?zs Szakm?ry
body: There is an option at tools\\options\\git\\"show file changes from all sides of a merge". This will change the way the diff is displayed.

comments: author: dawogfather
body: where does this option exist on SourceTree for Mac?


author: iliakatz
body: I don't see this option on Mac too. I am using SourceTree 2.6.3


Tags: merge
What is wrong with spawning of githooks?
Asked by Dmitri Shchurov:

I've got the following output *.git/hooks/pre-commit: line 2: exec: : not found*

My shebang looks as following:

#!/bin/sh  
':' //; exec "$(command -v nodejs \|\| command -v node)" "$0" "$@"

Being running, the script works fine. When I try to commit my changes, I get the error.  
I also tried another shebang

#!/usr/bin/env node

with the same result (node not found).

I could try to solve this with a soft link to node as '/usr/bin/node', but I'd like to avoid doing this.

Node is installed and is managed with nvm. And nvm alias to stable was made, and node is available in all shel command windows.  

I'd like to know the way SourceTree spawns githook commands.

PS $git commit itself works fine, githook script is processed without errors


Answers:
author: Pulkit Singhal
body: If \`nvm\` is what takes care of your nodejs installs, then:

The right answer is available here:

```
https://answers.atlassian.com/questions/140339/answers/32030983
```


Tags: mac
Using Visual Studio Directory as Source Directory.
Asked by Steve Wilson:

Hi There,

I am using sourcetree for my visual studio projects. Is there a way to setup a repository and have the source directory as my visual studio source directory of each of my programs.

At the moment I have to copy my Visual Studio directory to another directory before SourceTree will pick up the changes.

Thanks for your help.

Best Regards,

Steve.


Answers:
author: Bal?zs Szakm?ry
body: You need to do one of these two:

* Open the code from the Git clone in VS
* If you want the code to be where you are now using it from, overwrite that folder with the git clone (at a point when you have no uncommitted changes)

BTW VS has pretty nice Git integration, do check it out.
Why do I see unchanged files in my unstaged window?
Asked by Sushil Gote:

I think unstaged window will only show changed files so that I can select which files to select for staging? I am seeing that some of the unchanged files are also in the unstaged area. I am using git repo and sourcetree user interface. This is regarding sourcetree.


Answers:
author: Tim Crall
body: Check whether the pull down menu in the upper left corner is set to "**All files** ". If it is, that would explain it. The usual default value "**Pending files**" will only show changed files.

Screen Shot 2015-03-30 at 9.16.16 AM.pngScreen Shot 2015-03-30 at 9.21.04 AM.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/Why-do-I-see-unchanged-files-in-my-unstaged-window/qaq-p/345237?attachment-id=3313){#link_11742c41915e56}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/10312/1/Screen%20Shot%202015-03-30%20at%209.16.16%20AM.png){#display_11742c41915e56_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/Why-do-I-see-unchanged-files-in-my-unstaged-window/qaq-p/345237?attachment-id=3314){#link_11742c41915e56_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/10312/2/Screen%20Shot%202015-03-30%20at%209.21.04%20AM.png){#display_11742c41915e56_2}


author: Bal?zs Szakm?ry
body: You probably have changes in some non-printable characters, e.g. line breaks.


Tags: git
Is there any way to turn off file preview / diff on a file or file type in Windows version 1.6.14.0
Asked by Lucas Dreyer:

This question [has been asked before](https://answers.atlassian.com/questions/326488), but the solution isn't valid for my version of SourceTree (latest Windows version as of this post). My problem is simply that the diff pane doesn't work for large files and it slows SourceTree to a crawl. I would like to disable it for some files/file types, or just disable it completely. The solution was the following:

**"Use the Diff panel in preferences, edit filter by file type"**

I can't find a filter by file type in the diff panel in preferences. Is there another way to do this?


Answers:
author: Markus Ursinus
body: Hello Lucas,

so far as i know there is no way to filter files in the way you need. But to turn the diff off, you can try to set the maxnumber of files to zero on the diff panel in the preferences.

Cheers

Markus

comments: author: Lucas Dreyer
body: Thanks, that worked for me!


author: James Podesta
body: I have the same issue. But turning off diff altogether means I can't code review.

Have to toss up between waiting 10 seconds every time the file is selected, or losing code review...  

Since this is a year later, I'm guessing there is no chance for a fix or feature...


author: Lucas Dreyer
body: As I said in my post: "My problem is simply that the diff pane doesn't work for large files and it slows SourceTree to a crawl". So it's a performance consideration, although I'm temped to call it a bug because my SourceTree can become unusable if I work with large files. I have a fast computer already, the only other thing I can do is put the repo on a SSD and see if that helps.


author: Seth
body: Why are you turning the diff off? Is it just a performance consideration, or is it a filetype where diff is useless anyway (a binary file like .jpg, .pdf, or .exe for example)?
how to reset sourcetree remote account
Asked by Lu Li:

Login remote account with a deleted url for stash, every time open sourcecode, it shows login failed. Repository setting under Repository tab is grey.

Tried uninstall and reinstall sourcetree, problem still exists.

Also the follow files don't exist:

\~/Library/Application Support/SourceTree  
\~/Library/Preferences/com.torusknot.SourceTree\*

Screen Shot 2015-03-27 at 4.29.52 PM.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/how-to-reset-sourcetree-remote-account/qaq-p/159050?attachment-id=2361){#link_116a704f3b9027}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/4714/1/Screen%20Shot%202015-03-27%20at%204.29.52%20PM.png){#display_116a704f3b9027_0}


Answers:
author: Nic Brough -Adaptavist-
body: Your computer is unable to reach the server you have pointed it at. Check the connection settings and that you can reach the server with other applications (ping, ssh, git etc)
SourceTree do not show submodule commit
Asked by Markus Bischof:

After installing SourceTree on a new computer I noticed, that the commit of a submodule is no longer showed after the name of the submodule in square brackets.

Is there a setting I'm missing?

Markus


Answers:
author: Bal?zs Szakm?ry
body: There is no setting for this, but if you double-click the name of the submodule, it opens that and you can see which commit is checked out.

comments: author: Markus Bischof
body: Really? So this was dropped in an update? Because on my other Mac I can see the checked out commit directly in the submodules tree view - wich is very handy from my point of view.


author: Bal?zs Szakm?ry
body: I have the Windows version.
Full Screen on Mac Corrupts UI
Asked by Ed Gamble:

If the SourceTree window is on the Mac desktop and basically full size already (from just under the menu bar to just above the dock), then going into and out of full screen mode corrupts the UI. Presumably this is a known issue?

Screen Shot 2015-03-26 at 11.46.34 AM.png

Screen Shot 2015-03-26 at 11.46.51 AM.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/Full-Screen-on-Mac-Corrupts-UI/qaq-p/197773?attachment-id=4662){#link_116a708eb14846}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/5686/1/Screen%20Shot%202015-03-26%20at%2011.46.34%20AM.png){#display_116a708eb14846_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/Full-Screen-on-Mac-Corrupts-UI/qaq-p/197773?attachment-id=4663){#link_116a708eb14846_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/5686/2/Screen%20Shot%202015-03-26%20at%2011.46.51%20AM.png){#display_116a708eb14846_2}


Answers:
author: Ed Gamble
body: Yes, when going to full screen the wide gray bar appears (top image). And then, when going back out of full screen, the menu bar reappears (of course), the Source Tree window shrinks, but the small view just under that Source Tree toolbar (where the 'File Status', branch info and 'jump to' normally appears) is covered (bottom image).


author: Seth
body: So, is the extra gray space in the first screenshot the corruption you're referring to?


Tags: macro
How to choose visible columns?
Asked by citizenten:

In Log view I have visible only Graph and Description columns. Rest are gone (Date, Author...). How to make them visible?  

SourceTree: 2.0.5.2 for Mac


Answers:
author: Tim Crall
body: Probably your Description column is too wide taking up all the space, and the other columns are (invisible) off to the right. It's tricky to resize the collumn if you can't select it's right border, though.

Try maximizing the window and see if that let's you see the next column. Shrink the graph column. Hide the sidebar. You can even grab the Description column and drag it to the left. All of those things will give you more space for your oversized Description column, and with any luck that will make it's right border appear. Then you can just grab that border and resize it.

If you can scroll horizontally (easy to do with a magic mouse), that seems to work pretty well, too - but I don't see an actual horizontal scroll ball that you can easily use with a normal mouse.

There should be an easier way to set all the columns back to default widths.


author: citizenten
body: Thanks! You are right - column was too wide. But there was no "resize" icon when mouse on the edge.

To fix this I had to do this trick:

1. Start dragging Graph/Description columns
2. Rest of columns showed up, but Description is still at the end
3. Drag some other column to the end (took long time, as Description was very wide)
4. Then I could shrink Description, as resize icon was available

For sure that's not the way it should be
Please add option to include untracked files on stash dialog
Asked by T.J. Crowder:

Right now, the Stash Changes dialog box has only one option, "Keep staged changes." Please add a second one: "Include untracked files," e.g., the equivalent (when checked) of **`--include-untracked`** on a **`git stash save`** command. I almost never want to stash changes *without* including untracked (e.g., new) files.


Answers:
author: T.J. Crowder
body: Posted a feature request on Jira: <https://jira.atlassian.com/browse/SRCTREEWIN-3116>

comments: author: Seth
body: Great thanks. And, btw, kudos for including the relevant command-line options both here and there.


author: tdamsma
body: It has been reposted a few times, but has not received a lot of votes yet. Latest repost here: <https://jira.atlassian.com/browse/SRCTREEWIN-8117>


author: birolkoklu
body: As a workaround, you can stage all files and then stash them. This way, all files are stashed including untracked. On the other hand, this is just a workaround and not the best usability.

via Eren Seymen [https://jira.atlassian.com/browse/SRCTREEWIN-8117?focusedCommentId=1958278\&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-1958278](https://jira.atlassian.com/browse/SRCTREEWIN-8117?focusedCommentId=1958278&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-1958278)


author: Seth
body: Feature requests are most effective on jira.atlassian.com. Post a link back here as an answer, and I'll vote it up.

comments: author: T.J. Crowder
body: Thanks Seth, I've posted it to Jira now.


Tags: feature