Skip to content

Commit a4ad7ce

Browse files
authored
Merge pull request #490 from bertwesarg/patch-1
Add missing newline when writing a symbolic ref.
2 parents 788bd7e + b827f81 commit a4ad7ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/refs/symbolic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def set_reference(self, ref, logmsg=None):
313313

314314
lfd = LockedFD(fpath)
315315
fd = lfd.open(write=True, stream=True)
316-
fd.write(write_value.encode('ascii'))
316+
fd.write(write_value.encode('ascii') + b'\n')
317317
lfd.commit()
318318

319319
# Adjust the reflog

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy