youngmon/atlassian-qna huggingface dataset:
separator expected
Asked by Arulanantha Pushparaja Rejikanth:

As you can see I want to connect to AWS-EBT my PHP Application, but it's showing an error as per the image. Please assist.

![error.JPG](/t5/image/serverpage/image-id/152830iB63E993205852271/image-size/large?v=v2&px=999 "error.JPG")


Answers:
author: Theodora Boudale
body: Hi [@Arulanantha Pushparaja Rejikanth](/t5/user/viewprofilepage/user-id/4490229) and welcome to the community.

I believe the issue here has to do with indentation. Any commands in the script of a certain step should have an indentation of 2 spaces after the keyword **script**.

The indentation in your file looks like this (I am using one of my own yaml files as an example):

```
pipelines:
  default:
    - step:
        script:
- pipe: atlassian/trigger-pipeline:4.2.1
  variables:
    BITBUCKET_USERNAME: $BITBUCKET_USERNAME
    BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
    REPOSITORY: 'test'
    ACCOUNT: 'test-account'
    BRANCH_NAME: 'master'
    WAIT: 'true'
```

It should instead have an indentation as follows:

```
pipelines:
  default:
    - step:
        script:
          - pipe: atlassian/trigger-pipeline:4.2.1
            variables:
              BITBUCKET_USERNAME: $BITBUCKET_USERNAME
              BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
              REPOSITORY: 'test'
              ACCOUNT: 'test-account'
              BRANCH_NAME: 'master'
              WAIT: 'true'
```

Please let me know if the error goes away when you use indentation similarly to the above example.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Cannot open pull request by tapping pull request
Asked by TeamAzbow:

When I try to open a pull request to merge, it always navigates to this error page. it happens from 2-3 days.![Screenshot 2021-07-26 at 10.02.17 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/152816iEE54C7D5EDA48F57/image-size/large?v=v2&px=999 "Screenshot 2021-07-26 at 10.02.17 AM.png")


Answers:
author: Caroline R
body: Hi, [@TeamAzbow](/t5/user/viewprofilepage/user-id/4490015)! Welcome to the community!

I wasn't able to reproduce this issue, the Pull Requests are loading just fine for me. In this case, could you please try the next steps and let me know your observations?

* Could you try reopening the pull request from a different web browser or incognito window? This way we'll be able to confirm if this problem is related to the browser;

* Do you have any browser extensions installed? If yes, does the issue still happen when disabling browser extensions?

* In case the above steps don't help, could you please clear cookies and browsing history and let us know if the issue persists?

Thank you!

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
User registration????????
Asked by SatoruNakada:

When a new user registers an account after the invitation, the "create a username for Bitbuket Cloud" screen is displayed, but even if I enter the user name and press Continue, the screen does not change and I can not proceed to the Bitbucket home screen It is in a state. Is the "user name" entered incorrectly?

??????????????????????create a username for Bitbuket Cloud??????????????????????????????????????Bitbucket?????????????????????????????????????????????

![](https://confluence.atlassian.com/jpns/files/952603666/1004939122/1/1588920529538/Screen+Shot+2020-05-08+at+15.47.42.png)


Answers:
author: Rick Li
body: ?????????????????????????

??????????????????????

????????????? "**Verify your email** " ????????????

??????????????????

* [Bitbucket Cloud????? \~ ?????Bitbucket ??????](https://confluence.atlassian.com/jpns/faq/%E3%82%A2%E3%83%88%E3%83%A9%E3%82%B7%E3%82%A2%E3%83%B3%E8%A3%BD%E5%93%81%E3%82%B9%E3%82%BF%E3%83%BC%E3%83%88%E3%82%AC%E3%82%A4%E3%83%89/1-bitbucket-cloud-bitbucket " Bitbucket Cloud????? ~ ?????Bitbucket ??????")

??????????????????????????????????????  
????????????????Incognito/Private windows???????????????  

comments: author: SatoruNakada
body: [@Rick Li](/t5/user/viewprofilepage/user-id/3608820) ??  
???????????????  
?????????????????????????????IE????????????????????????????????Chrome?????????????????????????


Tags: bitbucket-cloud

cloud
can't bitbucket agents run envsubst? I did an install first.
Asked by Paule Grow:

I made a bitbucket pipeline, relevant bit shown below. It fails with:

bash:envsubst: command not found

pipeline yaml:

```
pipelines:
  default:
    - step:
        name: Cypress UI tests
        caches:
          - npm
          - cypress
        image: cypress/base:10
        script:
           # install dependencies
          - npm install npm@latest -g
          - npm install gettext
          # configure test
          - envsubst < cypress.env.json
```


Answers:
author: Caroline R
body: Hi, [@Paule Grow](/t5/user/viewprofilepage/user-id/4489850)! Welcome to the community!

I tested it on a personal repository and confirmed that the commands you were running were not installing envsubst. In order to install it, you can run the following command:

```
apt-get update && apt-get install gettext-base
```

After adding this line to your bitbucket-pipelines.yml, everything should work as expected.

I hope this helps, but please let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Sync branch with master
Asked by Prabin Singh:

Hi All,

Currently we have branches as such:

Master

develop

release/\*

feature/\*

Is there a way to auto create a PR to all release branch if a change has been made to master branch?


Answers:
author: Caroline R
body: Hi, [@Prabin Singh](/t5/user/viewprofilepage/user-id/4487137)! Welcome to the community!

Currently, it's no possible to auto-create a Pull Request to all release branches if a change has been made to the master branch in Bitbucket Cloud. I can create a feature request to implement this on Bitbucket Cloud, would you like me to do that?

In the meantime, you could perhaps achieve this by using webhooks and our API. You could create a webhook with trigger **repo:push** that will send a request to your server, then you can have a script on that server that will check if the push was on the master branch. If so, then you can use [our API to create a PR](https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests#post) from master to your release branches.

Just to let you know, we do have a feature request to automatic merge a branch on Bitbucket Cloud:

* <https://jira.atlassian.com/browse/BCLOUD-14286>

If you are not familiar with our Feature Request Policy, you can read more about it here:

* [Implementation of New Features Policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html)

I hope this helps, but please let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Is it possible to clone a repository onto an external server via SSH?
Asked by Carrie Short:

I'd like to use a development server instead of cloning all the files in a repo to my local machine. Is it possible to do this with sourcetree? I've tried cloning repository setting <ssh://username@server.com> as the destination path. Error message is 'Repository removed or deleted'

I can clone the repository to my devel server via terminal commands, but would really like to use the sourcetree GUI.


Answers:
author: stevestreeting
body: No, neither git nor hg allow the destination of the clone to be a remote. The only way is to ssh into the server and perform the git/hg commands there.
How do I set SourceTree to use the System Mercurial at /usr/local/bin/hg?
Asked by MyRemoteProjects:

My Mercurial installation is in /usr/local/bin/hg, but I can't browse to that file. That is the location to which the Mercurial installation program put it.


Answers:
author: stevestreeting
body: In Preferences \> Mercurial, when you click 'Use System Mercurial', SourceTree will detect the location of the system Mercurial for you but then let you browse if you want to change it.

Note, however, that Mercurial is actually a set of Python packages. The 'hg' command that you call is actually just a very thin wrapper which launches these packages. That's why the 'Use System Mercurial' dialog will probably open at /Library/Python/2.7/site-packages/mercurial - that's a*ctually* where the real Mercurial software is, and it's also where the Mercurial installer puts 99% of the files it installs. It's this which is the unambiguous part of the Mercurial install, not the hg script.

comments: author: Andrew S
body: /Library/Python/2.7/site-packages/mercurial isn't where homebrew puts it - what directory should homebrew users select in this dialog?


author: Foong
body: mine is located at /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial


author: Daniel Stout
body: this works for homebrew: /usr/local/lib/python2.7/site-packages/mercurial/


Tags: mac
SourceTree - How do I cherry pick?
Asked by Dwayne Coussement:

Hi, I really don't find how I have to cherry pick, I'm pretty new to GIT (and SourceTree) and I would like to push certain files (or changes) to one or multiple branches. I don't want to merge completely. So how do I do this with SourceTree?

Thanks!


Answers:
author: stevestreeting
body: In the log view (Cmd-2), just select one or more commit lines (Cmd-click or Shift-click multi-selects), then right-click and select 'Cherry pick'.

comments: author: Paul Donovan
body: Is there a way to included the SHA of the picked commit in the comment, the way git cherry-pick -x does?


author: stevestreeting
body: Not right now - at the time this feature was added, the -x behaviour was the default but it's been changed in git since to be an opt-in. i"ll add it to the feature requests.


author: Miguel dB
body: Hi, what about cherry picking without committing? (git cherry-pick -n)


author: Zteve
body: Re cherry-picking. I find that if I try to cherry-pick more than one commit at the same time *which includes the tip of a branch*, then the cherry-pick action fails with a message saying that a cherry-pick is already 'in progress'. Is this a bug?


author: Sumali
body: +1 for the feature requests:

cherry picking without committing immediately - <https://jira.atlassian.com/browse/SRCTREE-1026>

including SHA in the commit message - <https://jira.atlassian.com/browse/SRCTREE-1228>


author: Trejkaz
body: Selecting multiple doesn't appear to work actually. The confirmation message clearly says "the selected change", i.e., not plural. So I think you'll be doing it one at a time.


author: Diptiranjan Sukla
body: nice


author: Adam Conway
body: If I select more than one commit then the Cheery pick option is greyed out. Tried with two commits - select each one separately and I get the option to cherry pick, select both and I don't. They are two consecutive revisions on the same branch...


author: Victor Ionescu
body: exactly my problem.

Whats the solution to this problem tho?


author: Adam Conway
body: Apparently this isn't supported! See [https://community.atlassian.com/t5/Sourcetree-questions/Cherry-pick-multi-commits-but-the-cherry-pick-optionis-disabled/qaq-p/859356](https://community.atlassian.com/t5/Sourcetree-questions/Cherry-pick-multi-commits-but-the-cherry-pick-optionis-disabled/qaq-p/859356?) Seems like pretty basic functionality to me


author: Yonatan Lehman
body: adam - page not found with that link.

In any case, I can't see a cherrypick option in the menu...
Which branch is this changeset in?
Asked by Emerson Farrugia:

When I select a changeset in SourceTree, how am I supposed to know which branch that changeset is in? I guess I can scroll around until I see a label on some different changeset, or memorize branch colors (which is useless cause the same color may be used for different branches). But surely it's an important enough piece of information to be shown more prominently than that, no?

Thanks,

Emerson


Answers:
author: stevestreeting
body: I assume you're talking about Mercurial since Git doesn't associate commits with branches (it's the other way around).

If you click on a commit that is on anything other than the 'default' branch, then a 'Branch' entry will appear in the commit details: <https://skitch.com/sjstreeting/8ck4r/sourcetree-default-mercurial>. Commits on the default branch don't have a branch label, because 'hg log' itself doesn't report that.

comments: author: Emerson Farrugia
body: The commit details pane was completely collapsed in the Log view (likely my fault, but don't remember minimizing it.) It would also be helpful to move some of that commit detail information into the main pane. I'll put in a feature request for customising the columns, in particular adding branch and changeset columns.

Thanks for the help.
Error validating server certificate in SourceTree
Asked by Ricardo Garcia:

Hi! Firt of all to thank you for this great and useful app.

Yesterday my svn provider renewed their certificates, so sourcetree is giving me this error every time I try to fetch, pull or push changes:

Error validating server certificate for 'https://tonkalabs.svn.codebasehq.com:443':

- The certificate is not issued by a trusted authority. Use the

fingerprint to validate the certificate manually!

Certificate information:

.....

Server certificate verification failed: issuer is not trusted (<https://myproviderurl>...) at /Applications/SourceTree.app/Contents/Resources/git_local/libexec/git-core/git-svn line 2693

What can I do to force SourceTree to accept the new certificate?

Thank you very much in advance!

Ricardo


Answers:
author: stevestreeting
body: Hmm, SourceTree usually prompts to accept the certificate - to reproduce this I basically deleted all my Subversion configuration (in \~/.subversion) and removed all entries in my Keychain for a self-signed server that I have, then tried cloning from it, I got this: <https://skitch.com/sjstreeting/8m74i/sourcetree> . Clicking 'Accept' added an entry to my \~/.subversion/auth/svn.ssl.server folder and from then on the server was trusted.

If that's not working for you, you could try doing 'svn info your_url' on the command-line and accepting the cert there just to be sure.

comments: author: Ricardo Garcia
body: Hi Steve!

Thanks for your repply! I'm going to try what you say.

Cheers!


author: Ricardo Garcia
body: Hi Steve!

It worked!

Thanks again!
How to clone SVN project with spaces in a folder name
Asked by ishuvalov:

I need to clone remote SVN project which contains spaces in its folder name. I tried different options, but SorceTree always says "This is not a valid source path / URL"

Please advice how can do that.

Thanks!


Answers:
author: ishuvalov
body: Found the solution. You should use %20 instead of space

For example svn://path/to/some/repository/project%20name
SourceTree crash
Asked by Howard Kong:

I was doing a branch on a Hg local repository, and SourceTree crashed. I now no longer can use SourceTree. Everytime I open it, it opens my previous windows, including the one that contained the repository I was doing the branching in, and then it crashes again. Most of the time I get the "restore windows" dialog, but it doesn't matter which button I press, it always opens all the windows and then crash.

PLEASE HELP!!! I GOT a project due Monday morning!!!


Answers:
author: Howard Kong
body: I ended up deleting the old SourceTree from Applications folder, and then reinstalling the latest version from atlassian website, and I'm able to get in now. This is really the first and only time SourceTree has failed me in the 6 months I've been using it. It's been very stable, and I've come to rely on it completely. Good to know that an old trick worked to resolve the problem.

comments: author: stevestreeting
body: Sorry to hear about this, and for the delay (you just missed me before the weekend). Crashes are thankfully very rare, can you post the crash reports so I can investigate? You can find them in Console.app under User Diagnostic Reports, labelled SourceTree_datetime.crash


author: Nguyen Huu Bao Trung
body: I just experienced the same issue. SourceTree crashed on me when I tried to branch from default with a repo on network drive. Since then SourceTree has been crashing everytime I open it, even though I removed the repo bookmark.

I have included the log file that SourceTree told me to send. Please have a look. Meanwhile I will try to reinstall SourceTree to see if there's any luck.


author: Nguyen Huu Bao Trung
body: (sourcetree.log)
Where does Xcode 4.3.1 store local git repository?
Asked by tobyjunker:

Im use Xcode's local repository for my projects. Unless it is not recommended to do so, I am wondering if SourceTree offers better management of my repository than the built-in Xcode tools. I don't know how to add it, i.e., I don't know where Xcode stores the local repository.


Answers:
author: stevestreeting
body: Yep, or dragging / dropping the folder in which your project resides into the SourceTree Bookmarks window should do the trick.

XCode has to adhere to the same Git repository rules as anything else, which means that the root project folder has a (hidden) folder called '.git' where all the repository data is kept. So the root project folder is your git repository folder, and SourceTree can use that too.

comments: author: tobyjunker
body: Great! Thank you very much.


author: Stefan Saasen
body: I haven't check in 4.3.1 (so YMMV) but in 4.2 the git repository is the directory ".git" inside your project directory.

Setting the "Source Path/URL" of a SourceTree bookmark to the top level Xcode project works for me with Xcode 4.2.

comments: author: tobyjunker
body: Great! Thank you very much.


Tags: git

repository

xcode
precommit hg hook wont run when commiting in sourcetree
Asked by S2HC_johan:

I have a precommit hook that works fine when running hg commit in terminal. However when I commit in sourcretree, it seems it isn't executed.

How could I debug why the hook wont fire, or isn't it supported?

the config looks like:

```
[hooks]precommit=python:my_python_hooks.hghooks.precommit
```


Answers:
author: stevestreeting
body: Hmm, we don't specifically turn off any hooks, but does your hook rely on any extensions? For safety, SourceTree disables custom extensions when running to avoid any unexpected behaviour, but you can turn them on again in Preferences \> Mercurial. Hooks though, we don't override, and the root \~/.hgrc is still in the configuration stack.

comments: author: S2HC_johan
body: I have tride to add the core extentions and have tried with both emeded mecurial and system. but it dosen't seem to be fired. If i start a terminal from the app and run the same command as the one presented in the commit window (hg commit -y -m "test"). Do you call via a shell or is it done directly through the python package? could it be something with my hook that needs a terminal?

Is there any way for me to get more output from sourcetree to try to debug?


author: stevestreeting
body: SourceTree just calls 'hg' as a separate process, so except for it not being a full terminal it should behave the same way. You can see more of what's going on by going into Preferences and checking the box 'Always show full output', which will always display the full content of task windows (they normally auto-close on success and hide the detail).


author: S2HC_johan
body: Thank you for the quick response.

I have done some debugging in the python code and verified that the hook gets called.

What I'm curently focusing on is that the python code tries to make command line calls toards pylint and pep8 using subprocess.Popen(...) and mayby it's here things go south.


author: S2HC_johan
body: Thank you for your help, I appologise for not looking at my own code better before posting here.

The issue was that my hook uses binaries in /usr/local/bin, which is in my path when I'm logged in to a terminal. Hovever the scope where sourcetree is executing the hg command /usr/local/bin is not. Once I added full path to the binaries it started to work.

I don't know if it is a security risk, but it would be nice to set some form of shell context for executing commands, in my case bash, and get it to source my .bashrc. This would make sourcetree streamline better with whats happening when I use hg and git in commandline.

Once again, sorry for bloating and thank you for a good product.


author: stevestreeting
body: Ah yes, it's because the environment for all OS X apps is inherited from launchd and not from your terminal settings. If you want to add to your path in both your terminal and GUI apps in Mac OS X, the easiest way is to edit /etc/paths or add files to /etc/paths.d.

I'm glad you resolved it anyway!
multiple ssh keys
Asked by Rainer Burgstaller:

Hi

I have 2 github accounts with different ssh keys. I have reconfigured my .ssh/config to use my rburgst account on github, however, when I try to clone a private repo using it always tries to use id_rsa rather than id_rsa_github.

see my .ssh/config file below
> Host [github.com](http://github.com)
>
> User [rburgst@email.com](mailto:rburgst@email.com)
>
> Hostname [github.com](http://github.com)
>
> IdentityFile \~/.ssh/id_rsa_github


Answers:
author: Shinta Smith
body: Actually, the Host and HostName of the original post are the correct ones:

```
Host public-github        HostName github.com        User yourown_username        PreferredAuthentications publickey        IdentityFile ~/.ssh/id_github_pub        IdentitiesOnly yes
```


author: stevestreeting
body: I think your config file is incorrect, you've mixed 'Host' and 'Hostname' with the same setting, they need to be different. Also your user name looks wrong, it will need to be your GitHub user name and not your email (I know that GitHub lets you log in with your email, but that's not the actual name of your account, and that's what SSH uses).

Try this:

```
Hostname GitHub1Host github.comUser your_github_account_name_not_emailIdentityFile ~/.ssh/id_rsa_githubHostname GitHub2Host github.comUser your_github_account2_name_not_emailIdentityFile ~/.ssh/id_rsa
```

Then when you use the host, you use the friendly host name (GitHub1, GitHub2) as host aliases to these configurations instead of [github.com](http://github.com).


Tags: github

ssh
SourceTree: Remove ignored files from Git repository
Asked by Dylan Anderson:

I've got a 3rd party library in my app that I don't want to bundle with the download on GitHub. I didn't come to this realization until I had already uploaded it to GitHub.

How do I go about removing the library's files from GitHub, using SourceTree?


Answers:
author: stevestreeting
body: You can change the File Status view to 'Show All', then select the files in question and right-click 'Stop Tracking', then commit.

comments: author: Dylan Anderson
body: Thanks, that did it.