示例#1
0
        private void receivePack()
        {
            indexPack = IndexPack.Create(db, rawInput);
            indexPack.setFixThin(true);
            indexPack.setNeedNewObjectIds(needNewObjectIds);
            indexPack.setNeedBaseObjectIds(needBaseObjectIds);
            indexPack.setObjectChecking(isCheckReceivedObjects());
            indexPack.index(NullProgressMonitor.Instance);

            //  TODO: [caytchen] reflect gitsharp
            string lockMsg = "jgit receive-pack";

            if (getRefLogIdent() != null)
            {
                lockMsg += " from " + getRefLogIdent().ToExternalString();
            }
            packLock = indexPack.renameAndOpenPack(lockMsg);
        }