Added 'elif' condition to figure out why a commit wasn't added to the log.