Project

General

Profile

Git repo only shows files with latest changes

Added by Ankur Oberoi over 12 years ago

i used these instructions about using a mirror or my gitolite repo: http://ambitz.com/2011/03/07/adding-a-gitolite-controlled-repository-to-redmine/

great stuff but i noticed that only the files that i update and push end up viewable in browser on redmine. for example when i commit and push a change to 'hello.txt', it pushes to gitolite and the mirror properly, and then hello.txt shows up in redmine, but the other 20 files in the repo don't show up (directories actually do show up, but trying to see whats inside results in a 404). if i make a change on one of those 20 files, commit and push it, it will show up too. i've tried running 'ruby script/runner "Repository.fetch_changesets" -e production' too.

any idea why i wouldnt see the whole repo?

- Ruby implementation and version
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
- Rails version (rails --version)
Rails 2.3.11
- Operating system (precise if you're using cygwin when running on Windows)
CentOS (standard linux AMI on EC2)
- Database used, and its version
mysql Ver 14.14 Distrib 5.1.52, for redhat-linux-gnu (x86_64) using readline 5.1
- Ruby-aware server used: Webrick, Mongrel, Thin, etc. If you don't understand this point, you're using Webrick.
Passenger with Apache2- Phusion Passenger version 3.0.9, Apache/2.2.20

output of script/about:
About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.6.2
Rack version 1.1.2
Rails version 2.3.11
Active Record version 2.3.11
Active Resource version 2.3.11
Action Mailer version 2.3.11
Active Support version 2.3.11
Edge Rails revision unknown
Application root /opt/redmine-1.2.1
Environment production
Database adapter mysql
Database schema version 20110511000000

oh yeah, im using git version 1.7.2.5 if that might make a difference.


Replies (1)

RE: Git repo only shows files with latest changes - Added by Ankur Oberoi over 12 years ago

another thing that i just noticed that is strange:

in the Activity view, i can see commits from before i had redmine set up, commits from a few days/weeks ago and their commit message. If I click on them it even knows which files were modified, but if I try to view the file I get a 404.

Also when I am just in the Repository view, those same commits don't show up. I only have the more recent few. Looks lik the Repository view is broken or I did something really dumb.

    (1-1/1)