mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Don't rename across devices. Resolves #203
This commit is contained in:
parent
7b4470850e
commit
8faf96c1ad
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ class Store(object):
|
|||
def _write_sqlite_db(self):
|
||||
# To avoid a race where someone ^Cs between db creation and execution
|
||||
# of the CREATE TABLE statement
|
||||
fd, tmpfile = tempfile.mkstemp()
|
||||
fd, tmpfile = tempfile.mkstemp(dir=self.directory)
|
||||
# We'll be managing this file ourselves
|
||||
os.close(fd)
|
||||
# sqlite doesn't close its fd with its contextmanager >.<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue