Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #5472

Closed
Open
Created Oct 29, 2013 by Administrator@rootOwner

Viewing a file's contents cuts off part of the file

Created by: evanlucas

Summary: When I view the contents of a file in a repository, part of the file is cut off.

Steps to reproduce: Navigate to a project, select Files, and then select any file.

Expected Behavior: I would be able to view the entire contents of the file

Observed Behavior: Part of the file is cut off. This is typically happening for JavaScript files.

Screenshot:

screen shot 2013-10-29 at 11 20 08 am

Output of checks:

Checking Environment ...

Git configured for git user? ... no
  Try fixing it:
  sudo -u git -H git config --global user.name  "GitLab"
  sudo -u git -H git config --global user.email "gitlab@gitlab"
  For more information see:
  doc/install/installation.md in section "GitLab"
  Please fix the error above and rerun the checks.
Has python2? ... yes
python2 is supported version? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.7.1 ? ... OK (1.7.1)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
update hook up-to-date? ... yes
update hooks in repos are links: ... 
# All repositories came back as `ok`
Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes

Checking Sidekiq ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... no
  Try fixing it:
  Redownload the init script
  For more information see:
  doc/install/installation.md in section "Install Init Script"
  Please fix the error above and rerun the checks.
projects have namespace: ...  # All came back as yes
Projects have satellites? ...     # All came back as yes
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/local/bin/git"
Git version >= 1.7.10 ? ... yes (1.8.2)

Checking GitLab ... Finished

For the Git configured for git user returning no, if I run

git config -l

outputs

user.name=GitLab
user.email=gitlab@gitlab
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://github.com/gitlabhq/gitlabhq.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
branch.5-2-stable.remote=origin
branch.5-2-stable.merge=refs/heads/5-2-stable
branch.5-3-stable.remote=origin
branch.5-3-stable.merge=refs/heads/5-3-stable
branch.5-4-stable.remote=origin
branch.5-4-stable.merge=refs/heads/5-4-stable
branch.6-0-stable.remote=origin
branch.6-0-stable.merge=refs/heads/6-0-stable
branch.6-1-stable.remote=origin
branch.6-1-stable.merge=refs/heads/6-1-stable

and git config -l --global outputs

user.name=GitLab
user.email=gitlab@gitlab

The init script is the for the correct version although the check says it is not.

I am on branch 6-1-stable commit b5955039


Setup

System Information

System:     CentOS release 6.4 (Final)
Current User:   git
Using RVM:  no
Ruby Version:   1.9.3p392
Gem Version:    1.8.23
Bundler Version:1.3.5
Rake Version:   10.1.0

GitLab Information

Version:    6.1.0
Revision:   b595503
Directory:  /home/git/gitlab
DB Adapter: mysql2
URL:        http://gitlab
HTTP Clone URL: http://gitlab/some-project.git
SSH Clone URL:  git@gitlab:some-project.git
Using LDAP: no
Using Omniauth: no

GitLab Shell

Version:    1.7.1
Repositories:   /home/git/repositories/
Hooks:      /home/git/gitlab-shell/hooks/
Git:        /usr/local/bin/git

The issue occurs in Safari, Chrome, and FireFox

Thanks in advance

Assignee
Assign to
Time tracking