Can't see a comparison between PS1 files stored in stash, but can see the source

We are evaluating Stash and tried storing some PowerShell script files in a repository. When browsing the repository, you can view the PS1 file but Stash won't show the differences between commits of that file. Anybody run into this or is there a fix out there in the works? ()

4 answers

1 accepted

0 vote
Seb Ruiz Atlassian Team Sep 07, 2012

It is likely that your files are not "simple" text files, where they may be UTF16LE for example. Try diff them using the git client directly.

If you create PS1 files using the PowerShell ISE it saves the files in UTF-16 encoding. This causes problems for Subversion as well. Search for utf-16 at http://serverfault.com/questions/2071/hidden-features-of-powershell for a work around.

0 vote
Seb Ruiz Atlassian Team Sep 06, 2012

Are you able to provide more thorough instructions on how to reproduce this issue, or can you attach some screenshots?

Cheers

Well, I don't have enough Karma to upload screen shots but I can say that after doing some more research the files are not strictly text files as Git GUI can't display the differences between them saying that they are binary files.

The file contents do show in the file source view in Stash but when I click Diff to Previous it says the files cannot be rendered in your browser.

I had originally thought the files were just text but it seems the tool used to create them stores more than just text. Still, it is odd that I can see the contents in one view but not in another.

The files were created with Sapien Technologies PrimalScript and came from another department so I don't have access to the tools themselves.

Thanks.

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

712 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot