Browse files

Make sure producer = fs requirements don't get through back to lfs

  • Loading branch information...
1 parent 90561c9 commit 573dfe324edc8a39326b84f20b05b537b4cd9b8b Yurii Rashkovskii committed Feb 4, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 apps/htoad/src/htoad_lfs.erl
View
6 apps/htoad/src/htoad_lfs.erl
@@ -13,7 +13,8 @@ init(Engine, #init{}) ->
Engine.
ensure_file_present(Engine, #file{ ensure = present,
- type = file
+ type = file,
+ producer = undefined
} = File) ->
filelib:ensure_dir(File#file.path),
file:write_file(File#file.path, File#file.content),
@@ -22,7 +23,8 @@ ensure_file_present(Engine, #file{ ensure = present,
Engine.
ensure_dir_present(Engine, #file{ ensure = present,
- type = dir
+ type = dir,
+ producer = undefined
} = Dir) ->
ok = filelib:ensure_dir(Dir#file.path ++ "/"),
lager:debug("Ensured directory ~s",[Dir#file.path]),

0 comments on commit 573dfe3

Please sign in to comment.