def unix_path(path, is_win32=utils.is_win32):
 unix_path = path
 if is_win32():
  first = path[0]
  second = path[1]
  if (second == u':'):
   unix_path = ((u'/' + first) + path[2:].replace(u'\\', u'/'))
 return unix_path

def unix_path ( path , is_win32 = utils . is_win32 ) : unix_path = path if is_win32 ( ) : first = path [ 0 ] second = path [ 1 ] if ( second == u':' ) : unix_path = ( ( u'/' + first ) + path [ 2 : ] . replace ( u'\\' , u'/' ) ) return unix_path
git for windows requires unix paths .