Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336653 - git: 'repack' is not a git command
Summary: git: 'repack' is not a git command
Status: RESOLVED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: Git (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eclipse Webmaster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-08 15:51 EST by Sebastian Zarnekow CLA
Modified: 2012-08-15 12:02 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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