Skip to content

Commit f36e2b0

Browse files
rasendubijoepio
authored andcommitted
fix: disable previous commit validation for real
It was disabled for library, but not in the server interface.
1 parent 4bbbbb0 commit f36e2b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/handlers/commit.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ pub async fn post_commit(
2525
validate_signature: true,
2626
validate_timestamp: true,
2727
validate_rights: true,
28-
validate_previous_commit: true,
28+
// https://github.com/atomicdata-dev/atomic-data-rust/issues/412
29+
validate_previous_commit: false,
2930
update_index: true,
3031
};
3132
let commit_response = incoming_commit.apply_opts(store, &opts)?;

0 commit comments

Comments
 (0)