| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d5739cd commit e0eafc4
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -114,7 +114,7 @@ def from_line(cls, line): | |||
| 114 | 114 | newhexsha = info[41:81] | |
| 115 | 115 | for hexsha in (oldhexsha, newhexsha): | |
| 116 | 116 | if not cls._re_hexsha_only.match(hexsha): | |
| 117 | - raise ValueError("Invalid hexsha: %s" % hexsha) | ||
| 117 | + raise ValueError("Invalid hexsha: %r" % (hexsha,)) | ||
| 118 | 118 | # END if hexsha re doesn't match | |
| 119 | 119 | # END for each hexsha | |
| 120 | 120 | ||
@@ -274,11 +274,12 @@ def append_entry(cls, config_reader, filepath, oldbinsha, newbinsha, message): | |||
| 274 | 274 | raise ValueError("Shas need to be given in binary format") | |
| 275 | 275 | # END handle sha type | |
| 276 | 276 | assure_directory_exists(filepath, is_file=True) | |
| 277 | + first_line = message.split('\n')[0] | ||
| 277 | 278 | committer = isinstance(config_reader, Actor) and config_reader or Actor.committer(config_reader) | |
| 278 | 279 | entry = RefLogEntry(( | |
| 279 | 280 | bin_to_hex(oldbinsha).decode('ascii'), | |
| 280 | 281 | bin_to_hex(newbinsha).decode('ascii'), | |
| 281 | - committer, (int(time.time()), time.altzone), message | ||
| 282 | + committer, (int(time.time()), time.altzone), first_line | ||
| 282 | 283 | )) | |
| 283 | 284 | ||
| 284 | 285 | lf = LockFile(filepath) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments