Skip to content

Ruby 1.8 chokes on line breaks #10

@dergachev

Description

@dergachev

Via #8: I have been getting a syntax error on
app/models/repository/git_remote.rb line 131:

ret[:path] = url
                    .gsub(/^.*:\/\//, '')    # Remove anything before ://
                    .gsub(/:/, '/')          # convert ":" to "/"
                    .gsub(/^.*@/, '')        # Remove anything before @
                    .gsub(/\.git$/, '')      # Remove trailing .git

Removing the line-breaks fixed this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions