diff --git a/pagure/pfmarkdown.py b/pagure/pfmarkdown.py
index 2ed0799..fcb74e0 100644
--- a/pagure/pfmarkdown.py
+++ b/pagure/pfmarkdown.py
@@ -53,7 +53,7 @@ COMMIT_LINK_RE = \
'#(?P
Cf commit 9364354
', - 'Cf commit 9364354
', + 'Cf commit 9364354
', # 'Cf commit 9364354a', - 'Cf commit 9364354
', + 'Cf commit 9364354
', # 'Cf commit 9364354a4555ba17aa60f0dc844d70b74eb1aecd', - '', + '>9364354', ] with pagure.APP.app_context(): @@ -752,7 +752,7 @@ class PagureFlaskApptests(tests.Modeltests): first_commit = repo.revparse_single('HEAD') text = 'Cf commit %s' % first_commit.oid.hex - exp = 'Cf commit {1}'\
+ exp = ' Cf commit {1}'\
'