removes . on commit