INT-62: handle branches in getNodes
INT-61: handle branches in commit