Swift-format build error help

Hi, Not sure where to ask for help on this. I am trying to build swift-format git:(release/5.7) after running swift build I get the following output. I'm not sure where to start to fix this or know where the problem is. Thanks in advanced for any help.

➜  swift-format git:(release/5.7) swift build
Updating https://github.com/apple/swift-syntax
Updating https://github.com/apple/swift-tools-support-core.git
Updating https://github.com/apple/swift-argument-parser.git
Updated https://github.com/apple/swift-argument-parser.git (0.64s)
Updated https://github.com/apple/swift-tools-support-core.git (0.64s)
Updated https://github.com/apple/swift-syntax (0.64s)
Computing version for https://github.com/apple/swift-tools-support-core.git
Updating https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-tools-support-core.git at 0.2.7 (0.02s)
Updated https://github.com/apple/swift-system.git (0.55s)
Computing version for https://github.com/apple/swift-syntax
Computed https://github.com/apple/swift-syntax at 0.50700.0 (0.03s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.1.4 (0.02s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.1.1 (0.02s)
error: Couldn’t check out revision ‘04d4497be6b88e524a71778d828790e9589ae1c4’:
    fatal: reference is not a tree: 04d4497be6b88e524a71778d828790e9589ae1c4
error: ExitCode(rawValue: 1)
[0/1] Planning build%   

Facing similar issue, having ObjC libraries to build with package,

ikhatik@Irfans-MacBook-Pro XXX % swift build
Updating https://github.com/CocoaLumberjack/CocoaLumberjack.git
Updating https://github.com/apple/swift-log.git
Updated https://github.com/CocoaLumberjack/CocoaLumberjack.git (2.74s)
Updated https://github.com/apple/swift-log.git (2.74s)
Computing version for https://github.com/CocoaLumberjack/CocoaLumberjack.git
Computed https://github.com/CocoaLumberjack/CocoaLumberjack.git at 3.8.0 (5.23s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.4 (0.72s)
error: Couldn’t check out revision ‘0188d31089b5881a269e01777be74c7316924346’:
fatal: reference is not a tree: 0188d31089b5881a269e01777be74c7316924346
error: ExitCode(rawValue: 1)