Skip to content

Error if added filename's contain strings that look like JIRA issues. #3

@Poddster

Description

@Poddster

Pushing up a commit that added a file named "blah-V4-0.tar.gz" results in this error:

Writing objects: 100% (105/105), 28.75 MiB | 3.76 MiB/s, done.
Total 105 (delta 14), reused 105 (delta 14)
remote: update:INFO: Starting new HTTPS connection (1): <url>
remote: update:ERROR: No such issue 'V4-0' in Jira
remote: error: hook declined to update refs/heads/master
To <repor>.git
 ! [remote rejected] master -> master (hook declined)

error: failed to push some refs to '.git'

I think the problem is

a) the regex on line 265 is a bit too liberal:

magic = re.compile('\w+-\d+')

and
b) git_get_commit_msg uses --summary,

which gets a list of the files, rather than using git log or git reflog or something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions