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

This widget could not be displayed.
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.

This widget could not be displayed.

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.

This widget could not be displayed.
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

This widget could not be displayed.

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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Friday in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

121 views 5 2
Join discussion

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