Skip to content

Commit

Permalink
Merge pull request #132 from github/removelock
Browse files Browse the repository at this point in the history
Remove original file before moving the lock file
  • Loading branch information
rubyist committed Oct 2, 2014
2 parents 7c07c70 + acbf20f commit 1a0edcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gitmedia/gitmedia.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"
)

const Version = "0.3.1"
const Version = "0.3.2"

var (
LargeSizeThreshold = 5 * 1024 * 1024
Expand Down
2 changes: 2 additions & 0 deletions pointer/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ func (p *Pointer) CreateLink(filename string) error {

file.Close()

os.Remove(linkFile) // Remove the link file if it already existed

return os.Rename(linkLock, linkFile)
}

Expand Down

0 comments on commit 1a0edcc

Please sign in to comment.