"No Preview for File Type" in commit history

420 views
Skip to first unread message

koka424

unread,
Feb 24, 2013, 12:59:45 PM2/24/13
to gitl...@googlegroups.com
Server:
Scientific Linux release 6.2
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]

Background: I wanted to show day to day changes to configs for our network devices. I have setup gitlab on a server that stores our configs. I copied the contents of a directory for a certain day to the repository, did a "git add .", and then a "git commit -m "date". We have a directory for every day that a backup runs. I did this for each directory up until the most current.

At first everything appeared to work out great. Then I noticed that some files displayed a "No preview for this file type" message instead of the diff on the first commit. As I went further through the commit history they all began to display the "No preview for this file type" message. If I select the latest commit history then all display this message. When I issue a "git diff rev#:/path/to/file rev#:/path/to/file" I get the output from the diff. There are no errors complaining about a file type. I also do not see any errors in the logs.

I gave a brief background because I know that I am not using this in the traditional sense. I didn't know if that could be contributing to my issue. Any thoughts or suggestions would be appreciated.

Thank you.

koka424

unread,
Feb 25, 2013, 11:37:49 AM2/25/13
to gitl...@googlegroups.com
I found out that my issue was due to the file system detecting the file as a data file instead of an ascii file. It was doing this because Cisco uses a ^C to identify the beginning and end of the text for the login banner. When I remove the ^C it detects the file as an ascii file and works fine.
Reply all
Reply to author
Forward
0 new messages