2012-04-13 42 views
1

我試圖將分支推送到我的遠程存儲庫,但不能。 該錯誤消息表示:無法完成Git Push:PHP內存耗盡?

git -c core.quotepath=false push -v --tags --set-upstream origin abcd:abcd 
    Pushing to https://[userid]@[repository address]/git/[projid].git 
    POST git-receive-pack (567 bytes) 
    remote: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 662439121 bytes) in /home1/html/[repository center name]/www/include/Snoopy.class.php on line 1156   
    remote: error: hook declined to update refs/heads/unit04   
    Completed with errors, see above 

536870912字節== 512MB。我檢查了/etc/php.ini.default並檢查了memory_limit,但它是128MB。

我注意到有人遇到過memory problem。我的問題和這個人一樣嗎?

好日子,

KW

回答

1

Git是不是用PHP編寫的,所以你需要弄清楚爲什麼它調用該文件。你的內存問題不在git中,它在Snoopy.class.php中。我想這是一個git hook

+0

是我的情況,thx – barfoon 2012-09-17 21:19:13