youngmon/atlassian-qna huggingface dataset:
git push fail with "error: remote unpack failed: eof before pack header was fully read..."
Asked by da9l:

Hi!

I have at least two repositories that I currently fail to do git push to. Both fail with the error:  

```
error: remote unpack failed: eof before pack header was fully read
To bitbucket.org:da9l/<redacted repo>.git
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'bitbucket.org:da9l/<redacted repo>.git'
```

What am I missing here?


Answers:
author: Patrik S
body: Hello [@da9l](/t5/user/viewprofilepage/user-id/4937960) ,

Welcome to Atlassian Community.

The repack error might happen if you run out of memory when compressing large files.

Would you please try executing the below commands to limit the pack memory and threads, and try again ?

    git config --global pack.windowMemory "100m"git config --global pack.packSizeLimit "100m"git config --global pack.threads "1"

Reference: <https://stackoverflow.com/a/66246671>

Also, you can make a consistency check in your repo to confirm there are no corrupted files:

```
git fsck
```

Once you execute the commands above, you can try pushing to the repository again and check how it goes.

Hope that helps, let us know in case you run into any issues.

Thank you, [@da9l](/t5/user/viewprofilepage/user-id/4937960) .

Kind regards,

Patrik S


Tags: atl-gruland

bitbucket-cloud

cloud
Can you abort a build in bitbucket pipelines?
Asked by Wayne Pichotta:

I would like to filter if I perform a build or not based on an external API call. Is there a way to abort and not report a build status in cases where I don't continue with the build past that step?

I could fail the build or skip every step after that to report success but I don't want a bunch of false success or false failure builds in my build history.


Answers:
author: Theodora Boudale
body: Hi Wayne and welcome to the community.

I'm afraid that this is not possible in Pipelines.

You could use an external server to make these API calls, and then, based on the output, trigger a Pipelines build via API or do nothing.

You can set up webhooks to send a request to your server, e.g. on every commit:

* <https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/>

You can use custom Pipelines in your yml file (which will not get triggered automatically).

After you make the API call on your server, depending on the output, you can trigger a Pipelines build using the following endpoint:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-post>

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
How can I create PR Validation Trigger in bitbucket pipelines?
Asked by Wayne Pichotta:

Trigger options I have looked at are:

- \`branches\` will run automatically on a commit to a branch

- \`pull-requests\` in my testing will run when a pull request is created or merged

I would like a trigger that runs on each commit to a branch that is currently part of a pull request.

I am considering using the branches trigger for all branches and writing a custom pipe to check the Bitbucket API to get any related PRs for the commit. The downside being that it would require a pipeline run for every commit to any branch and I am not sure what I would do in the case no PR was found. I guess in that instance I could fail the build but that is not an ideal outcome to have a bunch of failed builds in my pipeline history.


Answers:
author: Patrik S
body: Hello [@Wayne Pichotta](/t5/user/viewprofilepage/user-id/4937782) ,

Welcome to Atlassian Community!

When you use the pull-requests trigger, it will trigger the pipeline in the Pull-Request creation, as well as in every push to the source branch of the pull request.

Let's take the below YML file as an example:

```
pipelines:

   pull-requests: 
       '**': #this runs as default for any branch not elsewhere defined 
         - step: 
             script: 
              - echo "Runs for any branch not defined below"
       feature/*: #any branch with a feature prefix 
         - step: 
             script: 
              - echo "Runs for any branch that starts with feature"
```

Supposing that I have created a branch called **feature/1** from **master.** When I create a Pull Request from **feature/1** to **master** , the pull request pipeline feature/\* will be triggered. While the Pull request is open, every subsequent commit to the source branch of the PR (in this case **feature/1)** will also trigger the pipeline feature/\*.

You can use something similar to the above in your yml to get the pipeline to trigger in every commit to a branch that is the source of a pull request.

Hope that helps! Let me know in case you have any questions.

Thank you, [@Wayne Pichotta](/t5/user/viewprofilepage/user-id/4937782) .

Kind regards,

Patrik S

comments: author: Wayne Pichotta
body: [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) wow that is embarrassing. It does exactly what I was asking for. I thought it was not acting that way in my testing last week. Thanks for your patience and taking the time to answer. This is great.


author: Patrik S
body: Hey [@Wayne Pichotta](/t5/user/viewprofilepage/user-id/4937782) ,

No worries at all :) I'm glad to have been of some help.

Thank you, [@Wayne Pichotta](/t5/user/viewprofilepage/user-id/4937782) !


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Cannot create PR from VSCode, auth error?
Asked by Blake Peavy:

Just started using BitBucket, created the repository and started the first PR via VSCode and I end up with this error. I'm an admin so I should be authenticated to access it. I've removed the Atlassian app from VSCode, restarted, logged in/out and still get the error. Any insights?   

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/198402i3650034274569E05/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Nick Rundquist
body: [@Blake Peavy](/t5/user/viewprofilepage/user-id/4526784)

That error indicates that git can't access the repository. git's authentication is done separately from the credentials you entered for the VS Code extension. For most users git authentication is done via SSH. Instructions on how to set up SSH for Bitbucket can be found at <https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/>

Regards,  
Nick


Tags: bitbucket-cloud

cloud

vscode
The contents of a file are in the wrong font.
Asked by Rod Pickard:

Hi,

I have a .sql file in a repository that shows the contents using the wrong font. Some how the WingDing font is being used to display the contents. I have tried deleted the file and Adding it back to the repo but unable to display it correctly. Any ideas?


Answers:
author: Patrik S
body: Hello [@Rod Pickard](/t5/user/viewprofilepage/user-id/4937139) ,

Welcome to Atlassian Community.

I see from your questions that you have not specified if this issue is impacting Bitbucket Server or Bitbucket Cloud. Checking on our internal system I've noticed you have a Bitbucket Cloud account associated with the e-mail of your community account, so I assume this issue is related to Cloud. In case it's for Bitbucket Server or Bitbucket DC, please let me know.

With regards to the wrong formatting, would you please share us a screenshot of how is the file being rendered in the UI?

Also, could you please make sure you are using one of the Bitbucket-supported browsers listed below?

* <https://support.atlassian.com/bitbucket-cloud/docs/which-browsers-does-bitbucket-support/>

Let me know in case you have any questions.

Thank you, [@Rod Pickard](/t5/user/viewprofilepage/user-id/4937139) .

Kind regards,

Patrik S
Is there a way to know if code repositorys were downloaded?
Asked by jennifer.lillis:

Is there a way to know if code repositorys were downloaded, with normal log details like who, when etc...


Answers:
author: Theodora Boudale
body: Hi [@jennifer.lillis](/t5/user/viewprofilepage/user-id/4936887) and welcome to the community!

I'm afraid that clone and pull events are not included in the workspace's Audit Log at the moment.

We have a feature request for that in our issue tracker:

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

I would suggest adding your vote to that feature request (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

download

log
Someone has already added that key as an access key to a repository?
Asked by Bo Fredander:

Hello. I cant add an SSH Key in my personal settings. I get the message "Someone has already added that key as an access key to a repository."

When I type:

```
ssh -T git@bitbucket.org
```

I get:

```
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled
```

Thanks,


Answers:
author: Theodora Boudale
body: Hi [@Bo Fredander](/t5/user/viewprofilepage/user-id/4720611) and welcome to the community!

I created a support ticket for you using the email of your community account. You should have received an email with a link to the ticket.

In case you haven't received the email, please let me know and I can post the ticket URL here. The support ticket is visible only to you and Atlassian staff, no one else can view its content even if they have the link.

Please leave a reply in the ticket and share the public SSH key you are trying to add, and we can check where this key is added.

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to edit project permissions for a user
Asked by Tommy Pool:

I have a user that needs permission to view and edit the settings for one of the projects in our workspace, however I can not find a way to edit those permissions.

How do I do this?


Answers:
author: Theodora Boudale
body: Hi Tommy,

At the moment, only workspace administrators can edit project settings. It is not possible to configure project administrators separately.

The user will need to be added as a workspace administrator in order to edit project settings, or an existing workspace admin can edit the settings.

We have a feature request in our issue tracker related to what you are asking:

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

You can add your use case by leaving a comment in that ticket for our product managers to consider.

I would suggest adding your vote as well (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features. You can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Nested parallel pipelines?
Asked by Georg Duemlein:

I would like to know how to achieve nested parallel pipelines with Bitbucket.

I would like to run infrastructure steps and application steps in parallel.

Both streams have sequential and parallel steps.

Is this possible with Bitbucket?


Answers:
author: Theodora Boudale
body: Hi Georg,

I'm afraid that it is not possible to have a parallel block within another parallel block at the moment.

I can create a feature request for our development team to consider, please feel free to let me know if you'd like me to proceed with that.

Just to make sure we're on the same page, are you looking for something like the following?

```
pipelines:
  default:
    - parallel:
      - stream-infrastructure:
        - step: *step-one (sequential)
        - step: *step-two (sequential)
        - parallel:
          - step: *step-three
          - step: *step-four
      - stream-application:
        - step: *step-one (sequential)
        - step: *step-two (sequential)
        - parallel:
          - step: *step-three
          - step: *step-four
```

where **stream-infrastructure** and **stream-application** streams will run in parallel, and then within each stream, **\*step-one** and **\*step-two** run sequentially, and **\*step-three** and **\*step-four** run in parallel?

Kind regards,  
Theodora

comments: author: Georg Duemlein
body: Hi Theodora,

Thank you for your patience.

Yes, please, a feature request would be great.

We have a couple of mono-repositories now and being able to structure the pipelines to match the structure would be a win.

Thanks,

Georg


author: Theodora Boudale
body: Hi Georg,

Sure, I'm happy to help.

We have an existing feature request for the possibility to include sequential steps in a parallel set:

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

I created another one for the ability to have a parallel set nested in another parallel set:

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

Since you'd be interested in these features, I would suggest adding your vote to both of them (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature requests.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Cannot Access Account
Asked by Robert Brown:

For some reason today, I've been unable to access my BitBucket account. I've had to create this temporary account just to even write this support ticket. It is extremely frustrating to all of a sudden not be given access to my own private repos.

I need help with this asap. I've obfuscated my email below, but someone needs to figure this out. I don't get a recovery email in my Inbox/Spam or anything else when resetting my password.

![image.png](/t5/image/serverpage/image-id/198269iB3B83ED5AFC5D3D8/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Andy Heinzer
body: Hi Robert,

Could you please let me know what your email address is of that account? I can obscure it from our site later.

Once I know that address, I can check it against our mail suppression system. If we can find it there, I can clear it which should then allow you to complete a password reset.

Andy


Tags: bitbucket-cloud

cloud

login
How do I push only the changed files to S3?
Asked by Mike Green:

So when files are being edit or changes are made and edit in a bitbucket repository, how can I push only the changes, is there a way or pipeline to do so?


Answers:
author: lissyaka
body: Mike Green, hi. It's a good case to use pipe:[aws-s3-deploy](https://bitbucket.org/atlassian/aws-s3-deploy/src/master/), which under the hood run: [aws s3 sync command.](https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html)

Try this in your pipeline configuration:

```
script:  - pipe: atlassian/aws-s3-deploy:1.1.0    variables:      AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID      AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY      AWS_DEFAULT_REGION: 'us-east-1'      S3_BUCKET: 'my-bucket-name'      LOCAL_PATH: 'build'
```

Cheers.

comments: author: Mike Green
body: This pipe only push all the files to S3 bucket, but we only want to push the changed files only to the S3 bucket. Is there a way to do that?


author: lissyaka
body: According to docs i provided previously: aws s3 sync recursively copies new and updated files from the source directory to the destination.  

This pipe logic:

```
run aws s3 sync ${LOCAL_PATH} s3://${S3_BUCKET}/ ${ARGS_STRING[@]} ${AWS_DEBUG_ARGS}
```


author: Quang Lai
body: That may be true, but when using it in Bitbucket Pipelines, the files don't retain their date/time from the code repo. The file always gets the current date/time, and so AWS S3 sync will upload \*all\* the files (because all the files have a newer file timestamp than what's on S3). This is easily tested doing a "ls -laR" in the pipeline and running the pipeline more than once, a few minutes apart.

So what we need is a way for Bitbucket Pipelines to preserve the files' date/time, instead of always reflecting the current date/time.


Tags: aws

bitbucket-cloud

cloud
Won't let me push or pull - message to press Y to trust this server but you can't press Y
Asked by debbie:

I have tried multiple configurations of the SSH key - still nothing works. How to I press y to trust this server when pushing, pulling, fetching, etc.


Answers:
author: Theodora Boudale
body: Hi [@debbie](/t5/user/viewprofilepage/user-id/1689400),

Are you using a command-line application to push or pull, or a Git GUI client?

In case you are using SourceTree for Windows, can you check the following link and try one of the workarounds mentioned there?

* <https://confluence.atlassian.com/sourcetreekb/trust-a-server-s-host-key-when-no-button-is-available-to-trust-it-788731545.html>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Cannot launch SourceTree 1.9.6.1 on Windows 7 (x64)
Asked by prestonmatterport:

I upgraded SourceTree to 1.9.6.1, and ever after the app has failed to launch.

Here are the symptoms:

No error messages.

SourceTree.exe runs for less than 3 seconds. I watch it appear and disappear in the task manager.

SourceTree.log does not get written to upon launch/crash.

Re-installing does not fix the problem.


Answers:
author: prestonmatterport
body: I was able to fix the problem by deleting C:\\Users\\%USERNAME%\\AppData\\Local\\Atlassian\\SourceTree\\ .

I lost my preferences/bookmarks, but now I can run the app.


Tags: crash

windows
What are the licence terms for SourceTree? My Legal department needs to review it as it is open source software.
Asked by shari_anderson:


Answers:
author: Geoff Joy
body: SourceTree, AFAIK is NOT open-source. It's closed-source freeware.

The Atlassian EULA is here:

<https://www.atlassian.com/legal/customer-agreement>

The deprecated SourceTree Corporate EULA is here:

<https://confluence.atlassian.com/sourcetreekb/sourcetree-license-for-corporate-usage-388404078.html>


author: Nic Brough -Adaptavist-
body: It's not Open Source at all.

Annoyingly, I can't find the licence terms, but I do know you get them if you register and ask for a (free) licence.
Howto Differentiate Repos
Asked by Mike Graham:

image2016-9-9 12:25:37.png

if you notice, the tabs look identical - the repo name isn't shown anywhere else so it is hard to know which is which.

would like some guidance. the work around for now is to double click the tree on the left and the desired tab gets the focus  
[](https://community.atlassian.com/t5/Sourcetree-questions/Howto-Differentiate-Repos/qaq-p/14430?attachment-id=2666){#link_117297cf93db70}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/407/1/image2016-9-9%2012%3A25%3A37.png){#display_117297cf93db70_0}


Answers:
author: Rodney
body: I don't think we can control how the tabs resizing so you'll have to rename your bookmarks to be shorter.

Maybe rename the folder to "pt:Spikes.Compose.Powertrain" and each repo with the last part.

comments: author: Mike Graham
body: makes sense :smile:
tree view disappeared 2.3.1
Asked by brossetti1:

Hey Atlassian,  
Not sure whats wrong, i no longer have a tree view and there is no option i see for restoring it. ive downgraded to 2.2.2 with no luck, i have coworkers on 2.3.1 and their tree view is working, but my 2.3.1 isnt. any ideas how i get it back?  
Mac OSX  
Sourcetree 2.3.1  
[](https://community.atlassian.com/t5/Sourcetree-questions/tree-view-disappeared-2-3-1/qaq-p/282478?attachment-id=2509){#link_1168dbdfa2e94d}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/8784/1/Fullscreen_9_9_16__2_06_PM.png){#display_1168dbdfa2e94d_0}


Answers:
author: QwazyWabbit
body: I think I may have misunderstood your reference to tree view. I think instead you are referring to the repository tree at the left of the window. In that case, drag the left border of the window to the right. You'll identify the proper border (tree border vs. window border) when the mouse cursor changes to a splitter tool vs. a border drag tool.

comments: author: QwazyWabbit
body: By tree view I think you mean the file list view and not the fork graph. There is a pulldown menu for the mode of the file list:

Screenshot 2016-09-09 07.39.23.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/tree-view-disappeared-2-3-1/qaq-p/282478?attachment-id=12741){#link_1168dbe8a88984}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/8786/1/Screenshot%202016-09-09%2007.39.23.png){#display_1168dbe8a88984_0}


author: brossetti1
body: apologies by tree view, I am referring to the fork graph that lists all the different branches.

<br />


author: QwazyWabbit
body: Very interesting screen shot. I'm trying my darnedest to replicate it.

You've managed to zoom the hunk display and I didn't even know that was possible. I tried pulling on the borders but it won't make the file list close completely.

I'd be looking for where SourceTree stores the window layout data file that it uses to restore the window at application launch and see if it can be hacked to fix this. Like you, I don't see a setting or hotkey for it.
I couldn't pull from repository once I commit, I got an error
Asked by sreekanth dabbeeru:

when I use sourcetree , I could't pull code form github once I commit , I got an error like , Is it mandatory to fetch every time before commit? some times I forgot fetch , and commit my code, then I couldn't able either push to repository or pull from repository.

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin  
From <https://github.com/spinscidev/SprintPOC>  
9af6710..4a7f738 master -\> origin/master

git.JPG  
[](https://community.atlassian.com/t5/Sourcetree-questions/I-couldn-t-pull-from-repository-once-I-commit-I-got-an-error/qaq-p/134696?attachment-id=12674){#link_117297f07cc3e3}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/4014/1/git.JPG){#display_117297f07cc3e3_0}


Answers:
author: Seth
body: This is going to happen often if you are part of a development team.

**You cannot pull if you have uncommitted changes**. This is to protect you from a scenario where changes someone else made to the remote would overwrite changes that you have made but not committed.

The appropriate resolution is to **commit** or **stash** any modified files in your repository, *then* pull. If you have un-pushed commits, git will merge the pulled commits with your commits (you may need to resolve conflicts). If you stash any changes, you can re-apply the stash after the pull is complete (again, there may be conflicts). After you have completed the pull and made sure all your changes are committed, you should be able to push.
In SourceTree using Git, under tools>options>authentication, currently have no username, how can i add one?
Asked by Jeff Kilpatrick:

In SourceTree using Git, under tools\>options\>authentication, currently have no username, how can i add one?


Answers:
author: Jeff Kilpatrick
body: Yes, one remote


author: Seth
body: Do any of your repositories have remotes?


Tags: git