youngmon/atlassian-qna huggingface dataset:
GitFlow breaks because of apostrophe in user name
Asked by Mus'ab Husaini:

I tried creating a new feature using Git Flow and got the following error message. I am using version 1.0.6.0. It seems like the apostrophe in my user name is causing trouble! When the script is executed, something removes the apostrophe.

```
sh.exe C:\Users\us'er\AppData\Local\Atlassian\SourceTree\gitflow_local\gitflow\git-flow feature start scala-conv"C:/Program Files/Git/bin/sh.exe": C:\Users\user\AppData\Local\Atlassian\SourceTree\gitflow_local\gitflow\git-flow feature start scala-conv: No such file or directoryCompleted with errors, see above.
```


Answers:
author: Rob O'Quinn
body: I've encountered this problem as well. I've tried to work around it by creating a symbolic link to the directory without the apostrophe in it, but that does not work - apparently the path that gets printed at the end is still not the one that sh.exe tries to use. It seems the only solution (presently) is to create a new Windows user account that does not have any apostrophes in it.
source tree and Askpass
Asked by mhp1370:

hello

I have problem with source tree,when I want to clone a private project Askpass should be run but it never run and I get APPCRASH error in windows.

what I should to do???

thank you


Answers:
author: mhp1370
body: hello

the problem was'nt in Sourcetree or Askpass, error raised when askpass try to use one of .dll file that worked with intel graphics(in my case intel 3000 hd).

for fixing I download intel graphic driver from intel(https://downloadcenter.intel.com/default.aspx) site and run then restart.


author: stevestreeting
body: It's worth noting that none of the Bitbucket clone URLs are 'http://' like the URL you quoted above, they're all 'https://'.

Please can you quote the exact URL you were using.


author: mhp1370
body: I try to clone repository by command line and repository cloned successfully

therefore URL is true. but still Askpass make crash.


author: KieranA
body: Hi there,

It looks like your repository URL is incorrect. Make sure you're using the one from your Bitbucket page as shown below:

![](http://i.imgur.com/OKgk3AY.png)

You can select either the SSH or HTTP url based on the drop down to the right of the screen on your repository page.

Just make sure you use that exact copy of the URL. If it's still not working we can go from there.

Cheers


author: mhp1370
body: There was 'sourcetree.log' but there wasn't 'askpass.log' !!!

in sourcetree.log :

2013-07-16T14:03:18: Could not determine repository from: 'http://xxxx@bitbucket.org/yyyyy/yyyyy.git', output was:  
fatal: repository 'http://xxxx@bitbucket.org/yyyyy/yyyyy.git' not found  
abort: HTTP Error 404: Not Found  
2013-07-16T14:05:04: Could not determine repository from: 'http://xxxx@bitbucket.org/yyyyy/yyyyy.git', output was:


author: stevestreeting
body: Please can you provide details of sourcetree.log and askpass.log in your %USER%\\AppData\\Local\\Atlassian\\SourceTree folder. Also please give as much detail as you can about the remote you're using.
How can SourceTree clone a branch?
Asked by Lee Whitney:

I don't see any options in the clone dialog to do this:

    git clone --branch 3.0.0-wip git://github.com/twitter/bootstrap.git


Answers:
author: KieranA
body: Hi Lee,

If you're using the Mac version then you can hit the "Advanced Options" pop-out when you specify the repository which will allow you to specify a branch as follows:

![](http://i.imgur.com/z1M6Kkf.png)

If it's for the Windows version then there's also the same concept as shown below:

![](http://i.imgur.com/gm5IBDr.png)

Hope that helps

comments: author: Lee Whitney
body: On the Mac version, when I click "Advanced" those options are not shown. The arrow turns downward, but nothing is displayed. I'm using 1.6.2.2.


author: stevestreeting
body: You need to actually enter a clone URL first. The reason is that the options in the advanced section are different depending on whether the URL points to a Git, Mercurial or Subversion repository.


author: Lee Whitney
body: I already tried entering a url, and SourceTree did prepopulate the dest path, but still no advanced section is available. The url I tried is: git://github.com/twitter/bootstrap.git


author: KieranA
body: Hi Lee,

I've just tried this myself with the same URL. Perhaps you're clicking the advanced options before you're entering the URL. The advanced options will only expand out if you click the arrow *after* you've entered the URL **and** it has resolved. So once the repository type is shown that's when you can click on it.

![](http://i.imgur.com/beZRUSI.png)

Hope that helps


author: Lee Whitney
body: Found the problem: After you enter the URL the Advanced panel will not open until ST pings the URL. Since this can take up to ten seconds, developers can click the Advanced arrow multiple times and the panel will not expand.

Even though a small spinner is displayed, this is actually UI validation bug. Either the Advanced arrow should be disabled until the URL ping is complete, or the panel should be expandable before a server response is received.

Thanks for helping to isolate the problem.


author: Lee Whitney
body: Found the problem: After you enter the URL the Advanced panel will not open until ST pings the URL. Since this can take up to ten seconds, developers can click the Advanced arrow multiple times and the panel will not expand.

Even though a small spinner is displayed, this is actually UI validation bug. Either the Advanced arrow should be disabled until the URL ping is complete, or the panel should be expandable before a server response is received.

Thanks for helping to isolate the problem.

comments: author: Lee Whitney
body: I meant to comment on above not create an answer, this can be deleted.
SourceTree Help
Asked by James Brown:

This is a beautiful application. I have spent way too many hours screwing around with Git, Git for Windows, Bash, tortoise and the rest. None of them are worth spit in my opinion. This one looks to be the one me and my team could work with.

That's fine and I realize that this is a beta but still....

There needs to be a from the ground up hand holding of some sort for us new users. A step by step example would go along way or a Youtube video of someone starting from scratch.  

Is there anything out there yet?


Answers:
author: James Brown
body: Thank you for your response Kieran. Let me make a proposal. Send me what you have for a Windows Help and I'll go over it with a fine tooth comb and give you feedback. That way we both profit.

No charge of course except future consideration would be appriciated.

Regards...


author: KieranA
body: Hi James,

Currently the Mac version has built-in documentation through the "Help" menu. The Windows version is playing catch-up at the moment and will have some documentation built into it very soon. In the meantime do feel free to ask us questions on here, we're more than willing to help you out.

Cheers
LF would be replaced
Asked by James Brown:

My first attempt at Push I get "LF would be replaced by CRLF in PixelEtherMega.ino" . An INO file is source code for the Arduino.

What do I do with it???


Answers:
author: James Brown
body: Confusing things these LFs


author: James Brown
body: I re-installed SourceTree but this time I unchecked the box that said "use default line endings".

This time it worked.

comments: author: MarkJeronimus
body: Never saw an option like that during installation of 2.4.8.0, otherwise it would have triggered me immediately.


author: James Brown
body: OK - I found my way into MINGW32 via your Terminal icon (I didn't know it had been installed) but it does not have a 'config' option in it.

comments: author: James Brown
body: Now I found my way to git config but when I enter:

git config core.autocrlf false

I get back:

"Error encountered dialog" with the message 'Summary' failed with code 128: fatal:bad config value for 'core.autocrlf' in .git/config


author: KieranA
body: Hi James,

In Windows a line ending is represented by CRLF, and in Unix systems it's represented by LF. The push is just warning you that your line endings are going to be replaced for that file. It sounds like you're working between both Windows and Linux/Mac on your repository.

This can be disabled if you want by setting autocrlf to false so it doesn't convert the line endings on push. This can be done at the command line / terminal when browsed to your repository location by calling the following:

git config core.autocrlf false

Hope that helps

comments: author: James Brown
body: Kieran - Still a problem.

<br />

To be sure I uninstalled GIT completly and reinstalled SourceTree. I still get the same error message. BTW its not a warning its game over error.

<br />

I had installed SourceTree with GIT internal this time. So now there is no way to run git config core.autodrlf false its not on my computer anymore. Any other ideas?

It sounds like this should be a configuration option in SourceTree don't you think?


author: MarkJeronimus
body: THIS IS VERY DANGEROUS

This answer didn't work for me. The warning was gone but the line endings were still changed SILENTLY. After pushing, I could only delete the remote repository and start over.

I could maybe have prevented this if I had double-checked with

\`git config --edit\`

But I didn't know about then, and I can't do it now since I found a way to configure it globally, and this DOES work for me:

\`git config --global core.autocrlf true\`

Verify:

\`git config --global --edit\`
Not Tracked files
Asked by Chris Rusby:

The footer in my SourceTree says that 2 files are not tracked, but there are no untracked files in the file status view. Is there some way to find out which files SourceTree's footer thinks are not tracked?


Answers:
author: KieranA
body: Hi Chris,

There likely is, however your file status view isn't set up to see them. In the Mac version there's the following filters above the file status view:

![](http://i.imgur.com/0ingTVX.png)

By changing these options untracked files may or may not be visible to you. The Windows version has equivalent filters if you're running on Windows, too.

Hope that helps

comments: author: Chris Rusby
body: Yes that's what I though initially. However, selecting "Show Untracked" shows no files, and if I "Show All" I don't see any files with the not tracked question mark symbol next to them...


author: KieranA
body: What happens if you run "git status" at the terminal when your present working directory is your Git repository folder?


author: Chris Rusby
body: I ran "hg status" as it's a mercurial repository. Lots of .DS_Store files, which I guess SourceTree ignores? However, there are two other entries:

? .hgcheck/hg-checkexec-DodzFR

? .hgcheck/hg-checklink-bUIWEG  
Could these be related to the 2 untracked files maybe?  
Thanks


author: Isaac
body: I'm in the same case, any hint?


author: vipulch
body: I too am facing the same issue on Windows version which I verified with the MAC version which works fine. Can you please provide why such behaviour ?


author: James Street
body: I am also having this problem. no filter setting displays untracked files for me. But i can see the untracked files at the command line and even add them. if I add them they get added to the staging area and can be viewed in sourcetree. it's only the untracked items that I'm unable to get visible within sourcetree (OS X)


author: James Street
body: figured it out. The IDE had created an extra git folder underneath the top folder and I am guessing the conflict was preventing sourcetree from figuring out what to display


author: gsa asas
body: I am pretty new to confluence. Some of what you are saying goes over my head for new source code [like this](https://jrstracking.com/). Do you have any screenshots or greater precise instructions?
Will there be a "native" Windows GUI for Sourcetree?
Asked by raulgd:

Hi all,

Will there be sometime soon a native GUI design for Windows Sourcetree? because right now is a weird Chimera mixing OS X, some Windows, and some that doesn't follow any UI guidelines.

It's also pretty annoying to have those huge buttons at the top toolbar, and there's now way to make them small like a normal Windows program, and also can't remove the labels so that they use less space in the toolbar.

Having this gray theme on the Windows just looks really bad, as the tabs look like made with jquery for a web page instead of a desktop application, and they are huge as well, and having no lines or anything separating the UI components, and just a gray background, the Sourcetree window seems like it was made by a high school student learning how to create GUIs with VB6.

I think you guys are awesome, and your product is amazing, I use it on the mac as well and you did a great job creating that GUI, I think it's time you give the same love to Windows.

Thanks


Answers:
author: KieranA
body: Hey Raul,

We are committed to making the Windows version a great experience for all users both in form and function. The Windows version is still in its very early days as the first public-ready version (1.0) only very recently came out. We do plan on investing more time in the user experience extensively so there's more continuity between platform and product, reflecting what the user expects on each operating system.

For now we've made it our focus to deliver the functions that the majority of users need whilst still making it usable rather than pretty.

Sit tight and watch this space as in the near future we will be making more changes. If you've got any particular requests/suggestions/comments you could always file feature requests on [jira.atlassian.com](http://jira.atlassian.com), even if it's to say "X looks ugly, it should look more like Y (example)".

We're open to any input, that's how we're building a better product, by guys like you giving us the feedback we need, so thanks!

HTH

comments: author: raulgd
body: Thanks Kieran!,

Your effort on having a great Git client on Windows is just awesome, I love your product on the Mac and that's why I'm giving you this feedback on Windows, I'm sorry if it could have sounded mean, but I'm trying to get everyone at work to start switching from SVN to DVCS, mainly we use Mercurial and we're moving to Git because of Stash, and having a better product that users like more will really ease on this transition.

People currently like their SVN clients better, and I've been getting feedback that Sourcetree is good but it's not as good as SVN, which is not helping in promoting the transition to the other developers, by having them read this answer will make them see that Atlassian products are not static, they are quickly evolving all the time and that you really are open to suggestions from the users unlike other companies.

So thanks for this answer, and keep up the awesome work!


Tags: user-interface

windows
Edit long commit message
Asked by Dirk Holtwick:

Hi, I'm using SourceTree on Mac and I love it!

I usually have quite long commit messages to write, but the commit message text field seems to be limited to have 6 lines visible i.e. I need to scoll a lot ;) Would it be possible to add a vertical splitter to resize it or to open an external editor?

Would also be cool to have some optional functionality to hard wrap or reflow text passages that are longer than the 72 characters width indicator.

These are just "nice to have" considerations ;)


Answers:
author: KieranA
body: I was worried you'd say that ;)

Yes, auto-formatting the message for many would be nice, especially if you're committing for patches that are being submitted to more stringent repositories like Git or Linux.

I've submitted it on JIRA here: <https://jira.atlassian.com/browse/SRCTREE-1711>

Cheers!


author: Dirk Holtwick
body: Awesome! That solves my problems. Thanks.

My use case: On Gerrit I'm constrained to use hard wrap, because otherwise the web page doesn't look great. It's like in this ticket I found via Google <https://code.google.com/p/gerrit/issues/detail?id=1741>


author: Dirk Holtwick
body: Awesome! That solves my problems. Thanks.

My use case: On Gerrit I'm constrained to use hard wrap, because otherwise the web page doesn't look great. It's like in this ticket I found via Google <https://code.google.com/p/gerrit/issues/detail?id=1741>


author: Dirk Holtwick
body: Thanks for the quick reply! Tickets look promissing.

If the resizing of the text area would be flexible and remembered after app relaunch, that would be great.

The column guide is already very useful, but I was thinking of something like this feature in TextMate <http://projects.serenity.de/textmate/tutorials/basics/#formatting> Once you insert new text in the middle of a paragraph you're still doing the whole reformatting by hand otherwise ;)


author: KieranA
body: Hi Dirk,

There's already an open issue scheduled for the next version of SourceTree to resize the text field against the diff view here: <https://jira.atlassian.com/browse/SRCTREE-1452>

There's also an open issue to show the character count when showing the column marker which should aid in showing you how many characters are per line here: <https://jira.atlassian.com/browse/SRCTREE-1650>

Hope that helps :)
SourceTree running a ruby git hook on OSX
Asked by Ayal Spitz:

I'm using SourceTree 1.6.2.2 on OSX 10.8.4 and as part of my companies commit process we've created a commit-msg hook, in ruby, that is designed to prevent a user from commiting code unless their commit message conforms to a specific set of rules.

Unfortunitly, it seems that SourceTree makes use of the ruby v1.8.7 that Apple distributes with OSX in 'System/Library/Frameworks/Ruby.framework/Versions/current/usr/bin' instead of using '/usr/bin/env ruby'. This causes all kinds of havoc especially since some of the gems we want to use depend on ruby 1.9+.

Is there anyway to switch the ruby which SourceTree utilizes to run git hooks? or is this something that Atlassian has to change in SourceTree? if so would you please.

Thanks - AYAL


Answers:
author: KieranA
body: Hi Ayal,

We'd use whatever's available on the $PATH, but this is a per-instance concept. Just because the PATH was set somewhere else doesn't mean it's available in the current execution. Steve's comments from [another thread](/questions/140339/sourcetree-hook-failing-because-paths-don-t-seem-to-be-set-correctly) better explain it than I can:
> It's not something we can fix ourselves, it's an effect of the fact that terminals and full .apps have compeletely different environments (and PATH variables), so just adding something to your PATH in the terminal isn't going to make it visible to something launched by SourceTree. The way to resolve it is to add this folder to your global PATH for .apps too, which you do by editing /etc/paths or adding a new entry to /etc/paths.d

So you'd need to add /usr/bin/env to your global PATH making sure it takes precedence so it's the first ruby version that's called when running your hook.

Hope that helps, feel free to ask more questions if you need more help.
Source Tree installation fails with Error code -36 on a mac
Asked by Jonathan Horsman:

I'm trying to install source tree on a macbook pro running 10.6.3. When trying to install source tree I get the following error message "The Finder can't complete the operation because some data in "SourceTree.app" can't be read or written. (Error code -36)." I should mention that I tried to download an older version of Source Tree a few months ago and got the same error and gave up on it. I've also tried using the same installation file that a coworker used (successfully) and that didn't work either. Any tips?


Answers:
author: KieranA
body: Hi Jonathan,

Error code 36 is an I/O problem (this is an OS-level concept) which usually means there's something wrong with your hard disk. Have you got some external disks you're using for repositories or trying to load SourceTree from an external drive?

There's a thread regarding this error code here: [https://discussions.apple.com/thread/2145463?start=0\&tstart=0](https://discussions.apple.com/thread/2145463?start=0&tstart=0). It's all related to communication with some external disk usually, but otherwise it could be there's something wrong with your hard disk rather than an external one.

If you search for that error you'll get many related results, a lot of them suggesting you need to re-format your hard disk unfortunately.

Cheers

comments: author: Jonathan Horsman
body: Thanks for the response Kieran. You are correct, it turns out I did have a couple errors on my hard disk. I repaired the disk and the os is now telling me the disk is ok. I tried downloading the install file again and even after repairing the disk I am getting the same error (-36).


author: KieranA
body: It may suggest your disk is having more problems regardless of a disk repair. If you look through various threads others had also stated they continued to get errors after a disk repair. Are you doing anything over a network, i.e. external drives?


author: Julia Poole
body: Reboot your Mac to Recovery Mode.  
Open Disk Utility, select your drive, and erase it using the options in the Erase tab.  
Quit Disk Utility.  
Use the backup recovery utility to restore your recent backup.  
for more info visit this URL  
<https://www.errorsolutions.tech/error/mac-error-code-36/>


author: Jonathan Horsman
body: After looking into it further it does seem like I was having more disk problems. After swapping out the HD in my machine I was able to successfully install source tree.

comments: author: KieranA
body: Glad you got it working, Jonathan :)


Tags: error

install