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 votes
Accepted answer
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 for a work around.

0 votes
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?


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.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

696 views 5 10
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