174175176177178179180181182183184
} else { // If this is the first commit in the git, there is no parent. result = id; } } catch (Exception e) { throw new GitException("Failed to find parent id. ", e); } finally { if (walk != null) { walk.release(); } }