youngmon/atlassian-qna huggingface dataset:
Problems installing SourceTree
Asked by Tony Goyarzu:

hi,

I get the following error when trying to install sourcetree (seel below)

Any help would be appreciated.

Cheers

Tony

PLATFORM VERSION INFO  
Windows : 6.1.7601.65536 (Win32NT)  
Common Language Runtime : 4.0.30319.17929  
System.Deployment.dll : 4.0.30319.17929 built by: FX45RTMREL  
clr.dll : 4.0.30319.17929 built by: FX45RTMREL  
dfdll.dll : 4.0.30319.17929 built by: FX45RTMREL  

SOURCES  
Deployment url : [http://downloads.atlassian.com/software/sourcetree/windows/SourceTree.application
ERROR](http://downloads.atlassian.com/software/sourcetree/windows/SourceTree.application%3Cbr%3E%3Cbr%3EERROR) SUMMARY  
Below is a summary of the errors, details of these errors are listed later in the log.  
\* Activation of <http://downloads.atlassian.com/software/sourcetree/windows/SourceTree.application> resulted in exception. Following failure messages were detected:  
+ Lock timeout exception.  

COMPONENT STORE TRANSACTION FAILURE SUMMARY  
No transaction error was detected.  

WARNINGS  
There were no warnings during this operation.  

OPERATION PROGRESS STATUS  
\* \[3/04/2013 6:41:08 PM\] : Activation of <http://downloads.atlassian.com/software/sourcetree/windows/SourceTree.application> has started.  

ERROR DETAILS  
Following errors were detected during this operation.  
\* \[3/04/2013 6:43:08 PM\] System.Deployment.Application.DeploymentException (LockTimeout)  
- Lock timeout exception.  
- Source: System.Deployment  
- Stack trace:  
at System.Deployment.Application.LockedFile.AcquireLock(String path, TimeSpan timeout, Boolean writer)  
at System.Deployment.Application.SubscriptionStore..ctor(String deployPath, String tempPath, ComponentStoreType storeType)  
at System.Deployment.Application.SubscriptionStore.get_CurrentUser()  
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String\& errorPageUrl)  
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)


Answers:
author: stevestreeting
body: That sounds like the installer was waiting for a lock on a shared resource, like the ClickOnce install directory or something like that. Did you have anything else running that might have been doing this, like another installer or upgrader?

If you can't track it down I'd recommend trying the installer again just after a reboot.

comments: author: Tony Goyarzu
body: Yes it turned out to be something to do with my pc and my user rights.

Thanks a million for your help.
List all branches which have not been merged to master
Asked by francis:

Is it possible to list all the branches which have not been merged using sourcetree.  
Command line would be

git branch --no-merged master


Answers:
author: KieranA
body: Hi Francis,

We don't have this feature in SourceTree. You can always file feature requests in [jira.atlassian.com](http://jira.atlassian.com) listing as much detail as possible for how you think it could be implemented. We always monitor feature requests.

Hope that helps

comments: author: francis
body: No prob - I will use the command line for now.
No password prompt - SourceTree Git
Asked by Seth:

SourceTree does not prompt me for usernames or passwords when cloning a remote Git repository.

I am running SourceTree 0.9.0.5 for Windows 7.

I have tried source URLs of the following forms:

ssh://git.example.com/path/to/repo/repo.git

ssh://user@git.example.com/path/to/repo/repo.git

ssh://user:pass@git.example.com/path/to/repo/repo.git

None of these initiate any sort of prompt. As soon as I move focus out of the source input, it thinks, the details say "fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists".

I can perform all git operations against the same URLs with Msysgit's git bash interface.


Answers:
author: stevestreeting
body: Right now you need to use SSH keys to use the SSH protocol, which is the default for most SSH hosts like Bitbucket and GitHub. Manual password prompting is only supported for HTTPS URLs right now.

comments: author: Seth
body: Not the answer I was hoping to hear, but it does answer the question definitively.


author: stevestreeting
body: We didn't have this explicitly tracked so I've created an improvement request for it: <https://jira.atlassian.com/browse/SRCTREEWIN-424>


author: IT-ansvarig Mensa Sverige
body: Ah, great news! :)


author: IT-ansvarig Mensa Sverige
body: In the meantime you can try an expect script instead! That'll let you set the ssh password in the script.

More information here: <http://bash.cyberciti.biz/security/expect-ssh-login-script/>

comments: author: stevestreeting
body: Thanks, but actually this has since been resolved and you can use manual passwords if your server supports them now. :)
Launch SourceTree using hyperlink
Asked by Josip Bernat:

Hi,

I have problem with launching SourceTree using hyperlink in HTML.

On my server I have installed git and I store my projects there. Now since I have a lot of projects I would like to make list of them and have buttton that will allow me to clone it using SourceTree with on click. Like BitBucket has button "Clone in SourceTree".

I think I need to use \<a\> tag with some "itms" that SourceTree recognizes. Does anybody have some code snippet that can help me? I would really appreciate it.


Answers:
author: stevestreeting
body: You can use this URL form to trigger a clone in SourceTree (this works on Windows and Mac):

sourcetree://cloneRepo/\<URL\>

For example:

sourcetree://cloneRepo/https://user@bitbucket.org/youruser/yourrepo

comments: author: Josip Bernat
body: Great!

Thanks!
naitve symlink support on Windows 7+
Asked by James Gregurich:

Does your WIndows version proper use Windows symlinks( reparse points) on Windows 7? Our repositories heavily use symlinks. We would need those to be checked out as Normal Windows symlinks. I know that MSYS-git (which I suspect you are using) does not work with symlinks on Windows.


Answers:
author: jean
body: It looks like with current sourcetree on Windows symlinks work fine, as long as you say:

```
git config core.symlinks true
```

The git-for-windows installer checks if the installing user has permission to create symlinks and sets that \` true\` if so, but looks like sourcetree doesn't.


author: stevestreeting
body: If you don't have Git installed already then the version of Git we can download for you is msysGit, so if that doesn't support the symlinks you need then that wouldn't work. However, SourceTree detects your system installed Git by default and will use that if it finds it (or you can manually specify its location), so if the system Git you have installed supports these symlinks then so should SourceTree, since it performs all of its functionality via calling that Git.

comments: author: James Gregurich
body: Currently, we run git in a custom version of cygwin. I'd probably have to be a little clever in setting that up because we run git from the bash shell hosted on cygwin. its not a normal dos executable. I'll tinker with it when I get some time. thanks.


author: zaheer pasha
body: Hi,

We are new to Atlassian bitBucket.. We are planning move migrate code from one VCS to Stash. Our current VCS has many symlink and we want to create same symlink in Stash.

I tried creating symlinks using 'ln' utility, below is the scenario i tested;

Scenario1: Created symlink in Dev branch and pushed to Master branch ? symlinks were pushed and are integral

Made changes in Dev branch, verified cotent is getting updated in below source and destination and then did a commit and again pushed to Master branch ? symlinks were pushed and are integral

Made a change in master branch and then pulled to Dev branch ? file got removed from the destination symlink directory.

Can some one let me know how to manage symlink in stash on windows. Does Bitbucket supports symlinks on windows


Tags: symbolic-link

windows
Sourcetree for windows install
Asked by Joe Ferr:

I've seen other messages about Sourcetree for windows, the clickonce installer and firewall issues.

I installed sourcetree for windows beta a few weeks back on win7 64 bit and I love it. Upgrades have worked fine etc. Now all of a sudden the upgrade failed. I uninstalled/tried to re-install and I cant reinstall.

error is 'Unable to retrieve application files. Files corrupt in deployment'

ERROR SUMMARY

Below is a summary of the errors, details of these errors are listed later in the log.

\* Activation of <http://downloads.atlassian.com/software/sourcetree/windows/SourceTree.application> resulted in exception. Following failure messages were detected:

+ Exception occurred loading manifest from file SourceTree.resources.dll: the manifest may not be valid or the file could not be opened.

+ File SourceTree.resources.dll is not a valid Portable Executable (PE) file.

+ File {0} is not a valid Portable Executable (PE) file.

I'm guessing that a firewall change at our company broke this, but I'm not going to get help unless I have more specifics. What needs to be opened up for this to work?

Thanks!


Answers:
author: Eduardo D?az
body: Same problem here, we have a content filter. There is an offline installer available?

comments: author: stevestreeting
body: Please see [https://answers.atlassian.com/questions/149591/is-there-an-offline-installer-for-windows-version-of-sourcetree](/questions/149591/is-there-an-offline-installer-for-windows-version-of-sourcetree)


author: stevestreeting
body: Just to make sure I just tested a fresh install to rule out any issues with the files deployed in the latest update; that went fine.

I've only ever seen the 'corrupt' message when the download was interrupted or interfered with somehow, usually if it's a firewall or proxy issue then the error is about downloading. Is it possible that your corporate proxy or firewall interferes with downloaded files on the fly? The way ClickOnce works is it downloads a bunch of separate files over simple HTTP, they're each main deployment file like dlls/exes etc but simply given a '.deploy' extension. I wonder if there's some issue with the server in between you and [downloads.atlassian.com](http://downloads.atlassian.com) detecting that it's downloading binaries (even with a different extension) and is filtering them out as a security measure?

comments: author: Joe Ferr
body: Thanks Steve. This should be enough info for me to provide to our security folks to hopefully be able to sort this out.

-Joe


author: Joe Ferr
body: Sounds like you had this spot on. Our security folks added this to the "safe list" and everything works fine now.

Thanks for the help!

-Joe
Sourcetree push/pull/network issues with remote repository
Asked by Jason Ried:

Hi,

We have a GIT repository setup on an internal mac server and then each mac uses sourcetree to view the projects/repositories. One of our team is based in the UK, while we're in South Africa, and he randomly has problems committing or pulling from the repository. At times he will pull and nothing happens, plus when he tries to commit he often gets issues. He connects onto our network via a VPN client, and this might be faulty but we've upgraded this and the security layers on our network.

The interesting thing is when I'm travelling or at home I randomly get these issues. At times it will work and then suddenly I simply can't pull. For instance I'm at home now and I can see no updates in Sourcetree. Pulling does nothing, it shows the status bar but this never stops pulling, never actually getting anything but never stopping. These issues occur on line speeds varying from 2MB to 12MB and vary from location to location.

Does anyone have any helpful ideas to solve this? Are there minimum latency settings or any network settings we should check? Any advice on this would be really helpful.

thanks


Answers:
author: Jason Ried
body: Thanks for the update Kieran.

We*think* we might have solved this as it's now working as expected. We updated our firewall software as well as a couple of other network items and then moved over from using named servers to the IP's. This seems to have made the connection far more stable and is working. For now I'm still keeping an eye on it, but it's positive.

Thanks as always for the advice.

comments: author: KieranA
body: Excellent :) Could you mark your own answer as correct if you find the time? It's just so we can help manage which issues have been resolved and which need our time. Many thanks in advance!


author: KieranA
body: Hi Jason,

I may be way off the mark, but if you're going over VPS then you'll be using some kind of network share (or in fact, it \*is\* a network share?). If this is the case, I can direct you to the following issues:

1. [https://answers.atlassian.com/questions/139650/adding-a-git-working-copy-located-on-sshfs-volume](/questions/139650/adding-a-git-working-copy-located-on-sshfs-volume)
2. [https://answers.atlassian.com/questions/17026/source-tree-corrupts-git-index-file-on-smb-share](/questions/17026/source-tree-corrupts-git-index-file-on-smb-share)

In short, a network file share typically causes corruptions. These usually happen at random, for example, a client can see that there's changes to pull, but then can't pull them, or a client may not even be able to see the index so never sees any changes.

We've had quite a few queries about this area but we don't control the network layer - that's an OS-level function, we just utilise whatever protocol/path there is and the OS will do the rest. I guess you could compare it to UDP which would be happy to drop packets along the way (which really isn't good for you).

Let me know if this applies to you or not, but if so, the hard answer is that you would have to find another solution to sharing the repository with your colleague.


Tags: git

repository
Custom Action Fails
Asked by Jason Pecho:

I've added a custom action that simply calls a shell script. However, when I run it, it fails. Here is the fail message:

prep_submodule.sh /Git/CFTools

2013-04-01 15:45:31.082 SourceTree\[4126:203\] \*\*\* NSTask: Task create for path '/Git/CFTools/Scripts/git/prep_submodule.sh' failed: 22, "Invalid argument". Terminating temporary process.

Completed with errors, see above

As you can see, I'm also passing $REPO to the script. The script simply says:

echo $1

I assume the script is just called with $REPO as the first parameter (second if you include $0)

Am I doing something wrong or is this a bug?


Answers:
author: KieranA
body: Hi Jason,

There's two issues here. The first is the one you're describing seems to think the path doesn't exist. I'd do things in this order

1. At the terminal in the directory you so wish, type "touch prep_submodule.sh"
2. Then at the terminal type "chmod +x prep_submodule.sh"
3. In the file make sure you've got the shebang in it, so the first line should have "#!/bin/sh". Check [this wiki entry](http://en.wikipedia.org/wiki/Shebang_(Unix)) for more details.
4. In SourceTree make sure the Custom Action sheet has the correct path set (i.e. make sure you can 'cd' to it from the terminal)

I just had a try myself to see if I could get your set up to work and it was fine.

Let us know if you need any more help.

Cheers

comments: author: Jason Pecho
body: Kieran, thanks for answering. My initial setup was very much as you have said. I accidentally type #!/usr/sh. I changed it to #!/bin/sh and it worked. Thanks!


author: Nuwan Pradeep
body: Thanks Kieran and Jason, I was trying to run a shell command from Adobe AIR and I failed. Then I seen this discussion and I added #!/bin/sh as mentioned above to my .sh file and it worked. :)


Tags: custom-field
SourceTree on Mac not reflecting local changes in Eclipse
Asked by Maureen Dunlap:

I just installed SourcTree on Mac OSX 10.8.3 and am trying to use it with my Eclipse project and Mercurial.

If I make a change to a local file, shouldn't it be reflected in the Working Copy window as "Show Pending"? In fact, no changes show up at all with any setting, so I'm not sure what I'm doing wrong.


Answers:
author: at0g
body: Same issue here - file changes to working copy never show, without either CMD+R (or changing the view mode).

I think the issue is to do with casing on the file system, try removing the bookmark that is not refreshing (keeping the files on disk) and then add the bookmark again using the local files, this seemed to fix the problem for me, in my case I had **\~/dev/project-name** instead of **\~/Dev/project-name**

comments: author: wlanni
body: Wild. That fixed it for me as well. Thanks!


author: Dave Stewart
body: I'm getting the same on a brand new mac. This is bizarre, surely it should update automatically? I have to CMD+R it.


author: KieranA
body: Hi Maureen,

Yes if you use the setting "Show Pending" then it'll show all files that have changed that are not ignored. One thing to quickly try is a force refresh (Cmd+R) if you don't see a refresh. The next thing to do would be check the files you're amending are a) part of the working copy and b) not ignored. Thirdly, ensure you've got adequate system resources (hard disk space, available memory etc.) as we rely on what Git/Mercurial reports to us in order to update SourceTree. If your system resources are lacking then Git/Mercurial will take a long time to report file changes (this is known to happen). Lastly, and it may sound silly but I only know from personal experience, ensure the files you're amending are actually a part of the repository in SourceTree.

If none of those apply get back to us and we'll be happy to look into it further.

Cheers

comments: author: Maureen Dunlap
body: Thanks Kieran. I'll give it another try. I may have had my repository set up wrong.


Tags: change

mac
Differences View Line Numbers
Asked by Chris Dant:

In SourceTree Mac 1.6.0b1 (but also in 1.5.8)

On the Repository Window, File status File Status View, with a Git repository and staging enabled, the differences view (shows the contents of a selected file) displays mangled line numbers for some file types.

I first noticed this with a CSV file, but then observed it with a file with no extension (like README).

Here's a video that demonstrates the problem I'm seeing:

<http://youtu.be/qWgUz89uHuY>

And here's a screen shot:

![Problem with Differences View line numbers](https://dl.dropbox.com/u/82658026/SourceTree1.jpg)

Seems most likely that this is **user error** of some sort, but I can't see how. Any ideas?


Answers:
author: KieranA
body: Hi Chris,

This is an encoding issue which we've seen in the past due the diff view not seeing the line endings it's expecting. There's an [open issue here](https://jira.atlassian.com/browse/SRCTREE-1285) which causes the problems you're showing. It's not really user error, it's just the SourceTree diff view doesn't know to handle the encoding. In fact, the diff is ripped out from what Git reports back, which in this case likely means the line endings are different from what's expected.

Keep an eye out on that issue we've linked, it's still an open ongoing issue that we plan to look at in more detail in the future. I'll put a vote on the issue on your behalf.

Cheers

comments: author: Chris Dant
body: Great explanation, thanks. I'll watch that bug and see if I can't work out the line endings on my end.
Getting installation error
Asked by Joao Cordeiro:

For some reason I can't install source tree on windows 8.

It either does not initiate the install app at all and shows this error: "An error occurred trying to download 'http://downloads.atlassian.com/software/sourcetree/windows/SourceTree.application'."

Or it starts it and on the first download it gets stuck at 158KB. After a while the installer closes and shows an error log containing this error:

"

Following errors were detected during this operation.

\* \[29/03/2013 15:21:08\] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)

- Downloading <http://downloads.atlassian.com/software/sourcetree/windows/Application> Files/SourceTree_0_9_0_5/extras/licenses/GongDragDrop.htm.deploy did not succeed.

- Source: System.Deployment

- Stack trace:

at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()

at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)

at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)

at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory\& downloadTemp)

at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState\& subState, ActivationDescription actDesc)

at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String\& errorPageUrl)

at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

--- Inner Exception ---

System.Net.WebException

- Unable to connect to the remote server

- Source: System

- Stack trace:

at System.Net.HttpWebRequest.GetResponse()

at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

--- Inner Exception ---

System.Net.Sockets.SocketException

- A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 63.246.22.204:80

- Source: System

- Stack trace:

at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket\& socket, IPAddress\& address, ConnectSocketState state, IAsyncResult asyncResult, Exception\& exception)  
"  
I have no problem acessing the internet or downloading either through the browser or windows 8 Store apps.  
Can anyone help me?


Answers:
author: Joao Cordeiro
body: It worked after a few windows updates installs and a system reboot. Thnx anyway


Tags: install