- # issues = _get_issues_for_file(path)
- # commit_message = _add_references(form.cleaned_data['commit_message'], issued)
- repo.commit(message=form.cleaned_data['commit_message'], user=form.cleaned_data['user'])
+
+ # add references to comment
+ issues = _get_issues_for_file(path)
+ commit_message = _add_references(form.cleaned_data['commit_message'], issues)
+ print 'Commiting with: ' + commit_message
+
+ repo.commit(message=commit_message, user=form.cleaned_data['user'])