Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336653

Summary: git: 'repack' is not a git command
Product: Community Reporter: Sebastian Zarnekow <sebastian.zarnekow>
Component: GitAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: david_williams
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sebastian Zarnekow CLA 2011-02-08 15:51:38 EST
Recently the following error messages occur when I try to push to the Xtext git repo:

Auto packing the repository for optimum performance.
/usr/local/libexec/git-core/git-sh-setup: line 202: uname: command not found
/usr/local/libexec/git-core/git-repack: line 54: rm: command not found
/usr/local/libexec/git-core/git-repack: line 58: find: command not found
/usr/local/libexec/git-core/git-repack: line 58: sed: command not found
/usr/local/libexec/git-core/git-repack: line 91: mkdir: command not found
/usr/local/libexec/git-core/git-repack: line 91: rm: command not found

According to [1] this could even be a problem on the server instead of my poor machine. Could you please verify that this is not the server's fault?

[1] http://stackoverflow.com/questions/4863092/git-push-gives-git-repack-is-not-a-git-command
Comment 1 Denis Roy CLA 2011-02-10 10:38:35 EST
This may be related to the restricted shell we use, which is not allowing those commands.  I've given you a real shell; can you please close all your connections and try your repack operation again?  Thanks
Comment 2 Sebastian Zarnekow CLA 2011-02-10 10:57:03 EST
Works like a charm. Thanks.
Comment 3 Denis Roy CLA 2011-02-10 10:57:54 EST
How often do you need to do this repack?
Comment 4 Sebastian Zarnekow CLA 2011-02-10 11:17:12 EST
Good question. The server seems to do it automatically after a certain time when somebody pushes new commits.
Comment 5 Denis Roy CLA 2011-04-21 15:11:33 EDT
See bug 340429