Skip to content
Snippets Groups Projects

Add fetch-remote command for repo mirroring

Merged Douwe Maan requested to merge mirror-repository into master

Also exits import-repository with non-zero status when import fails.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
128 129 url
129 130 end
130 131
132 def fetch_remote
133 @name = ARGV.shift
134
135 # timeout for fetch
136 timeout = (ARGV.shift || 120).to_i
137 $logger.info "Fetching remote #{@name} for project #{@project_name}."
138 cmd = %W(git --git-dir=#{full_path} fetch #{@name} --tags)
  • Does the argument to --git-dir need to be quoted (can the path contain spaces)?

  • Doesn't need to be quoted, %W() will end up with a single element "--git-dir=whatever was in full_path including changes", which Process.spawn will treat as a single argument, irrespective of spaces.

  • Robert Speicher Status changed to merged

    Status changed to merged

  • Robert Speicher mentioned in commit 08f94e6c

    mentioned in commit 08f94e6c

  • mentioned in commit cvd/gitlab-ce@6967bad3

  • mentioned in commit cvd/gitlab-ce@834e440f

  • Please register or sign in to reply
    Loading