プロジェクト

全般

プロフィール

Vote #72462

未完了

git repository not updated when committing in github

Admin Redmine さんがほぼ4年前に追加. ほぼ4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
0
issue_org_id:
11796
author_id:
62810
assigned_to_id:
0
comments:
3
status_id:
1
tracker_id:
1
plus1:
2
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

I followed this tutorial: http://www.redmine.org/projects/redmine/wiki/HowTo_simply_keep_Redmine_in_sync_with_GitHub

The github hook calls the sys/fetch_changesets url but redmine does not fetch the new changes because the "git-fetch" command is never executed. When I add this code at the beginning of the "fetch_changesets" method in "models/repository/git.rb" it updates correctly.

system("cd #{self.url} && git fetch")

journals

+1

This would really fix the workflow, this way we can just let our repository system call the /sys/fetch_changesets url and everything in redmine get's updated.

I think redmine should only do this if the repository is a --mirror repository though. Or there should be an option in the redmine settings: "Fetch git repositories before loading the changes in redmine."
--------------------------------------------------------------------------------
+1

I'm also trying to make this work, i.s.o. of running a periodic cron job for all git repository mirrors.

When the hook has been set up, I see "GET /sys/fetch_changesets?key=I7...xv&id=sandbox HTTP/1.1" coming in when pressing GitHub's test button, but it does not cause an update of the local repository.
--------------------------------------------------------------------------------
"SCM Creator":http://projects.andriylesyuk.com/project/redmine/scm-creator got support for Github and runs "git fetch" for @fetch_changesets@. Please try.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ4年前に更新

  • カテゴリSCM_3 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0